Script inside the external javascript file doesnt work after the button inside the update panel is clicked..
eg:
Default1.aspx has Button1 inside the UpdatePanel1. Once the Button1 is clicked, the Javascript code written in the file externalScript.js doesnt work..
I have mapped this js file with the Default1.aspx page's head section..
by googling i understood that i have to include Register-Startup scripts to re-register externalScript.js with Default1.aspx after ashyn postback, but not sure how exaclty this has to done in this case..
how to fix this issue?? please let me know if my query is not clear or you need more info..
JQueryjavascriptasynchronousPostback
Kalyan Chakrvarthy S
------------------------
Please Mark This As Answer, If It Helps You
skalyanchakr...
Member
61 Points
59 Posts
Adding external JavaScript file after asynchronous postback
Feb 27, 2012 08:41 AM|LINK
Hi
Script inside the external javascript file doesnt work after the button inside the update panel is clicked..
eg:
Default1.aspx has Button1 inside the UpdatePanel1. Once the Button1 is clicked, the Javascript code written in the file externalScript.js doesnt work..
I have mapped this js file with the Default1.aspx page's head section..
by googling i understood that i have to include Register-Startup scripts to re-register externalScript.js with Default1.aspx after ashyn postback, but not sure how exaclty this has to done in this case..
how to fix this issue?? please let me know if my query is not clear or you need more info..
JQuery javascript asynchronous Postback
------------------------
Please Mark This As Answer, If It Helps You
vijay_myl
Contributor
5070 Points
1068 Posts
Re: Adding external JavaScript file after asynchronous postback
Feb 27, 2012 09:31 AM|LINK
hi..
Refer this code....
JQuery javascript asynchronous Postback
My .NET blog
Submit Article
chetan.sarod...
All-Star
66579 Points
11270 Posts
Re: Adding external JavaScript file after asynchronous postback
Feb 28, 2012 02:23 AM|LINK
http://stackoverflow.com/questions/1828764/reload-external-javascript-after-asynchronous-postback-via-updatepanel
http://stackoverflow.com/questions/6652024/registerclientscriptcode-not-working-after-a-partial-post-back
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
skalyanchakr...
Member
61 Points
59 Posts
Re: Adding external JavaScript file after asynchronous postback
Mar 01, 2012 09:54 AM|LINK
chetan.sarode, vijay_myl - Thank you verymuch for your replies...
i got the solution..
http://jquerybyexample.blogspot.in/2010/08/jquery-datepicker-does-not-work-after.html
JQuery javascript asynchronous Postback
------------------------
Please Mark This As Answer, If It Helps You