/// <summary>
/// 在当前页面弹出提示框
/// </summary>
/// <param name="page"></param>
/// <param name="o"></param>
/// <param name="strText"></param>
public static void ShowMessageBox(Page page,string strText)
{
strText = strText.Replace("'", "").Replace(";", "").Replace("<", "").Replace(">", "").Trim();
page.ClientScript.RegisterStartupScript(page.GetType(), "", "<script>alert('" + strText + "');</script>");
}
/// 在当前页面弹出提示框
/// </summary>
/// <param name="page"></param>
/// <param name="o"></param>
/// <param name="strText"></param>
public static void ShowMessageBox(Page page,string strText)
{
strText = strText.Replace("'", "").Replace(";", "").Replace("<", "").Replace(">", "").Trim();
page.ClientScript.RegisterStartupScript(page.GetType(), "", "<script>alert('" + strText + "');</script>");
}