Friday, October 17, 2008

Javascript alert from ASP.net code behin

Javascript alert from ASP.net code behin
you can display javascript alert from code behind
C# code:
public string Javascript_Alerts(string msg)
{
string popupScript;
popupScript = " <script language='javascript' >" + "alert('"+msg+"') </script >"; return popupScript;
}

Example for use Response.write(Javascript_Alerts("your msg");