View Single Post
  #1 (permalink)  
Old March 21st, 2007, 02:04 PM
rajatake rajatake is offline
Authorized User
Points: 179, Level: 3
Points: 179, Level: 3 Points: 179, Level: 3 Points: 179, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2005
Location: chennai, Tamil Nadu, India.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rajatake
Default Prblem while using <asp:updatepanel>

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 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 page
 Dim objType As Type
 Dim objCS As ClientScriptManager
 Dim sScript As String = String.Empty
 objType = Me.GetType()
            sScript = "<script>'" & sTempFilename & "');</script>"
objCS = Page.ClientScript
objCS.RegisterStartupScript(objType, "Preview", sScript)

I have to do it only on serverside.

Thanks in Advance.