I am trying to set a Javascript call to fire when I control the ASPX user access page.
Web site lets users add user controls to a page (similar to adding Google widgets like one widget, etc.) but when the control is added, the Javascript is not a fire, the page will refresh only, this will cause JavaScript to fire If the next time the website is accessed and the controller still has a javascript fire there.
Do I need to use the RegisterClientScript method to register the call ( In the beginning of the ASCIX file in user control, this is: $ (document) .ready (func Tion () {}); is run only after a full postback (when the DOM is reloaded). I think that you are adding control through another AJAX method (in that case document. You can use the AJAX Framework Event page load (Sender, Args), will fire after both the callback and postback. You can use it like this .. setAutoTimer () ) Control Load or the Owner's Event.
Function Page Load (Sender, Args) {if (args.get_ispartialLoad ()) {setAutoTimer (); GetData);}}
Comments
Post a Comment