How to use Javascript alert inside AJAX UpdatePanel
Java Script to show Messagebox from Codebehind, This code will not work when same is used with Updatepanel postback.
Page. ClientScript.RegisterStartupScript(this.GetType(), "winPop", "alert('Update is successful')
So in order to add javascript in update panel you need to register you client script to your script manager as shown below:
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('Update is successful.');",True)
Page. ClientScript.RegisterStartupScript(this.GetType(), "winPop", "alert('Update is successful')
So in order to add javascript in update panel you need to register you client script to your script manager as shown below:
ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('Update is successful.');",True)
Comments
Post a Comment