Alert Message using C#


Alert Message Using C# in ASP.NET 




--------------------- Method 1

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Your Selected AccountID is : " + AccountID + "')", true);




-------------------- Method 2


ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Insert is successfull')", true); 




Comments

Popular posts from this blog

Tree view in winforms using c#

how to Replace null value with 0 Using C#

how to fetch all HTML Table Records and modify all records accordingly using jquery and Javascript