|
y wld u us txtspk n a cnfm wndw?
also y dnt u jst rite ths as:
function abc()
{
return confirm("sme silly txtspk");
}
|
|
|
|
|
Hi Guys,
I have a webform that lets people apply for leave.
currently on btnApply_Click, I go through a lot of validation.
My code outline goes like this:
protected void btnApply_Click(object sender, EventArgs e)
{
if(ValidateDate())
{
if(ValidateLeaveBalance())
{
//the loop goes through a few more validation before leave application is carried out
ApplyLeave();
}
}
}//apply button method end
I am trying to use btnApply.Attributes.Add("onclick", "confirm('message')"); to show the applicant his leave details before confirming application.
1) How do I put his application dates into message?
2) How do i receive the input from the user if he clicks yes or no?
3) Can this confirm- javascript run after all the validation is passed?ie:before ApplyLeave(); ?
Please advise....
Thanks so much!
|
|
|
|
|
blooper02 wrote: How do I put his application dates into message?
For that you have to call a javscript function where the entered dates are fetched and appended with the confirmation message.
blooper02 wrote: How do i receive the input from the user if he clicks yes or no?
When user clicks OK, form will post and if he is clicking cancel it won't be posted. To make this, you have to add return when calling JS function on button click.
blooper02 wrote: Can this confirm- javascript run after all the validation is passed?ie:before ApplyLeave(); ?
You have to emit the JS code after your validation is over. Use RegisterStartupScript() method for this.
|
|
|
|
|
blooper02 wrote: 1) How do I put his application dates into message?
Write a javascript function and call the function on the OnClick client event
here in the below code displaymsg() is the javascript function that displays the confiramtion message.
btnApply.Attributes.Add("onclick", "return displaymsg();");
blooper02 wrote: 2) How do i receive the input from the user if he clicks yes or no?
If the user clicks NO then it return's false and Page will not get posted back to the server. If YES then Input values can be taken and processed on the server-side.
blooper02 wrote: 3) Can this confirm- javascript run after all the validation is passed?ie:before ApplyLeave(); ?
Javascript runs on the client-side. First your client-side validation's will be performed and then your server-side validation happens...
Regards - J O N -
|
|
|
|
|
when i login into my yahoo id then in the address bar the above link occurs for specifying my id.after loged out and again login with the same id within seconds tghn the second link occurs for specyfying the id of me in the address bar.how is it possible.i want to include this in my project .so please send the source code for this .not for mailing.only if a user logs in thn his identificetion will be seen in the address bar with random numbers
First Id
http://in.f86.mail.yahoo.com/ym/login?.rand=bpt3l988dd1j8 (When i first logs in )
Second Id
http://in.f86.mail.yahoo.com/ym/login?.rand=acipfkovoqo59 (when i logos out within esconds and again logs in this number will be generated)
|
|
|
|
|
Write your own algorithm which generates this random key.
SreejithAchutan wrote: so please send the source code for this .not for mailing.only if a user logs in thn his identificetion will be seen in the address bar with random numbers
|
|
|
|
|
what is the algorithm for that pls send it to me
|
|
|
|
|
SreejithAchutan wrote: what is the algorithm for that pls send it to me
I am not working for yahoo. And if you are ready to pay me, I will write it for you.
|
|
|
|
|
no i dont want to encrypt yahoo ids.i want the algorithm for general encryption
|
|
|
|
|
|
Hi,
I am facing a problem ...I am using requiredfieldvalidator for dropdownlist and regularexpressionvalidator for textbox entering email address all these controls are placed in updatepanel(ajax)....first time error messages can see ..but after selecting one item from dropdownlist error message can't see but actual validation are taken place in the background...
how can i solve this..ie. how to show error messages while something failed,,,
please help me
alex.
|
|
|
|
|
Hi,
I'm using system.net.mail class and my smtpserver is localhost.
i found no errors in the code but my mails are storing in the mailroot/queue folder and its not delivering to the receipient.
My system is in network and using a proxy server, i'm using exchange server to get mails, is that anyway i need to reconfigure my system to send mail?
please help me
Regards
Shiva
|
|
|
|
|
Shiva Srivatsav wrote: my mails are storing in the mailroot/queue folder and its not delivering to the receipient.
Because your local SMTP server won't be working. Start it from IIS settings
|
|
|
|
|
Hi Navaneeth,
My SMTP is running fine and i chked with the services too..
|
|
|
|
|
Ohh then it might be some other problem. Sorry, don't have any idea
|
|
|
|
|
show u r piece of code, so that i can help u
Ramana
|
|
|
|
|
A firewall blocking your port 25?
No SMTP traffic allowed in your network?
|
|
|
|
|
|
divya.narayan wrote: for specifying
date we should get a calender everytime
Ok
please don't forget to vote on the post that helped you.
|
|
|
|
|
divya.narayan wrote: Need a source code for the following in c#:
This is not a place where we sell source code.
|
|
|
|
|
Don't repost the question. And the Expert's here can only share their knowledge and Idea's, can give some suggestion's to fix up your problem. I don't think someone will do your work and mail you the source code.
Read This[^]
Regards - J O N -
|
|
|
|
|
|
divya.narayan wrote: Can I know the steps
Well, this is a decent approach.
You have to put text boxes and required buttons. For inserting into database you need
1 - SQLConnection instance
2 - SQLCommand instance
Call ExecuteNonQuery() method to insert data into database. After inserting fetch the data from database and bind it to the grid. For edit link, use TemplateColumn and link to another page where these data's are shown for editing.
These kind of questions are very basic, why don't you buy a good book and learn it your self, and post the problems you got here.
|
|
|
|
|
i have webfarm mode and i have more then one server.
i have one fileupload control how it will upload the file on server in file structure.
|
|
|
|
|
Write code to get data from the database on OnSelectedIndexChanged Event of DropDownList and Pass the selected value of dropDownList into storeProcedure.
You will get dataset.Assign ds to DataSource of Gridview and call DataBind Method of Gridview.
divya.narayan wrote: to edit,update and delete the records
get it http://aspalliance.com/47
best regard
pathan
please don't forget to vote on the post that helped you.
|
|
|
|