I am facing Unique problem while using <asp:updatepanel>. I have written my problem to this forum after testing completely.
If I use RegisterStartupScript or RegisterClientScriptBlock in the ASP.net page where i am using <asp:updatepanel> the script is not executing. Even it doesn't throw any error. I understand partial postback only happens while wsing <asp:updatepanel>. Is there any work around for this?
My code for Script in the Aspx.vb
Dim objType As Type
Dim objCS As ClientScriptManager
Dim sScript As String = String.Empty
objType = Me.GetType()
sScript = "<script>window.open('" & sTempFilename & "');</script>"
objCS = Page.ClientScript
objCS.RegisterStartupScript(objType, "Preview", sScript)
I have to do it only on serverside.
Thanks in Advance.