i have a registration page with a submit button.
i want to show an alert box when the \"user clicks on the submit button\" after which the \"data entered by the user
public void ErrorTrap(string str)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "alert" + UniqueID,
"alert('" + str + "');", true);
}
You need to use ScriptManager if you use ajax.
public void ErrorTrap(string str)
{
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "alert" + UniqueID,
"alert('" + str + "');", true);
}