Why Javascript Codes Don’t Run in user control ?

poorna313

Newcomer
Joined
Sep 11, 2009
Messages
1
Hi All.
I'm Developing on One project that Contains Just One Page(home.aspx) !
Home.aspx Contains ScriptManager , UpdatePanel
( A Div , Some LinkButtons that Load related UserControl ) in UpdatePanel.
Other pages are UserControls(UC) that Load in a div placed in Home.aspx . Some user controls Contains javascript Codes . My problem is : these codes Don't Run Ontime (After LinkButton Click and UC Loaded) .
How to Solve This problem?
Thanks in advance.
 
Sounds like a postback issue. Remember when you postback to the server, all form load events run again unless in an update panel. If you postback in an update panel and need data created after the page load, then you need to create them again as the partial page postback does not trigger the page load events again.
 
Back
Top