Hi
There are so many approaches to display alert message from code behind file i.e by vb.net and C#. But one of the easiest ways to display alert message using Ajax ScriptManager like this
Write code on buttonclick event like this
protected void Button1_Click(object sender, EventArgs e) { // Here will be your some conditional code ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Data has been added Sucessfully');", true); }
Reblogged this on Sutoprise Avenue, A SutoCom Source.