Click here to Skip to main content
15,896,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guy,

I so much love developing web apps that are quick responsive and give users what they want instantly, that is why I love using AJAX ControlToolkit.

But I realize that I cannot execute client(javascript)-script when I have button to execute this script inside an UpdatePanel control. Similarly, I cannot use the SaveAs method of the FileUpload control to attached a picture or document, instead, the FileUpload content (the file I browsed) will lost it value at the click of the button. Also, a TextBox that I use Calender extender for losts it's Date value when postback occurs.

Is there a way arround solving this problem? I mean adding extenders to ASP server controls should not cease them from executing the server script.

Please help on this issue.

Thanks.
Posted
Comments
AspDotNetDev 22-Aug-10 17:36pm    
I didn't really follow you. Perhaps you could edit your question to add a SMALL code sample to demonstrate ONE of your issues?

1 solution

Below is the sample to execute javascript while using AJAX

ScriptManager.RegisterStartupScript(this, this.GetType(), "alertUser", "alert('You must hit enter to continue');", true);

Put the fileupload and textbox + calendar extender inside another updatepanel, so that they don't loose value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900