ClientScript.RegisterClientScriptBlock not working inside updatepanel
Posted on 2011-02-15
I have some code that uses :
ClientScript.RegisterClientScriptBlock(Me.GetType(), "PopUpwindowOpenx", strScript) in my code behind.
This works fine.
When I put the page inside an update panel this code stops working.
I have tried replacing with:
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType, "PopUpwindowOpenx", strScript, True)
It still doesn't work.
What am I doing wrong with the new line?