How to show alert message from code behind side in Asp.net using ScriptManager:


Write the following code is for display alert message from code behind side in asp.net  just like messagebox.show() in windows applications.

string Msg = "<script>alert('Please select Employee Name');</script>";          ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "alert", Msg, false);



0 comments:

Post a Comment