I have a form default.aspx with a scriptmanager and webpart manager.
I have 4 webpart zones. One of the zones has a basic user control for its content. The user control has a button inside an update panel and I have the following on the click event for the button:
Protected Sub cmdMarkComplete_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdMarkComplete.Click
Me.Page.ClientScript.RegisterStartupScript(Me.Page.GetType, "mymsg", "<script>alert('hello');</script>", True)
UpdatePanel1.Update()
End Sub
Nothing happens, I dont even get any javascript error but the aync does cycle as I can changes label value (as test) etc. If I check the source markup after the click, 'hello' is not even there so its as if its not registering the script. It must be todo with the fact I have an user ctrl inside a webpart. Can anyone help?
Thanks in advance.