#region /// 弹出信息 public static void ShowMeg(string strMeg, Type type)
/// <summary>
/// 弹出信息
/// </summary>
/// <param name="strMeg">要弹出的信息</param>
/// <param name="type">控件类型</param>
public static void ShowMeg(string strMeg, Type type)
{
//获取当前页面对象
Page p = HttpContext.Current.Handler as Page;
p.ClientScript.RegisterStartupScript(type, "m", "<script type='text/javascript'>alert('" + strMeg + "');</script >");
}
#endregion
/// <summary>
/// 弹出信息
/// </summary>
/// <param name="strMeg">要弹出的信息</param>
/// <param name="type">控件类型</param>
public static void ShowMeg(string strMeg, Type type)
{
//获取当前页面对象
Page p = HttpContext.Current.Handler as Page;
p.ClientScript.RegisterStartupScript(type, "m", "<script type='text/javascript'>alert('" + strMeg + "');</script >");
}
#endregion