How to Show Javascript Alert Message in c#


if(condition)
{
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('sorry you are not authorized to view this page')", true);
  return;
}
else
{
}

Comments

Popular posts from this blog

String Program in C#

CSV using XmlNode

Extension Method & Partial Class