I want to add java script function.
The following code works - if I put that on page load event.
If I put the same code in Button_click event - the message does not pop up.
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "myAlert", "alert('Record added');", True)
If this helps, I am also using Ajax controls on my page and update panel.
I will appreciate any help.
The following code works - if I put that on page load event.
If I put the same code in Button_click event - the message does not pop up.
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "myAlert", "alert('Record added');", True)
If this helps, I am also using Ajax controls on my page and update panel.
I will appreciate any help.