Javascript within a user control in an UpdatePanel not running

sauravh

New Member
I have a webform which contains some LinkButtons.
When each LinkButton is clicked I want to load a different UserControl.
I also want to do it with Ajax.I tried it in two ways as described here and here
[Both approaches use an UpdatePanel, the first adds the user control and changes its \[code\]Visible\[/code\] attribute, the second uses \[code\]LoadControl\[/code\] function]Both works (upvoted them!) but I still have a problem-
I can't run javascripts within the user controls...
It doesn't recognize any functionWhen the user controls were added not dynamically it all went wellThe only workaround I found was to move the javascript from the user control to the page but that's not nice...Also tried this with no luckAny help will be appriciated
 
Back
Top