#region ShowMessage public static void showMessage(string strMessage, Page page) { try { Type csType = typeof(String); int nKey = 0; nKey++; string strKey = nKey.ToString(); string strScript = string.Empty; ClientScriptManager clientScript = page.ClientScript; if (clientScript.IsStartupScriptRegistered(csType, strKey)) { nKey++; strKey = nKey.ToString(); } strScript = "<script language = 'javascript'>alert('" + strMessage + "')</script>"; page.ClientScript.RegisterStartupScript(csType, strKey, strScript); } catch (Exception ex) { Common.WriteErrorLog(ex); } } #endregion
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)