分享个现在系统正在用的网页消息类,简单但是实用。
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;////// WebMessageBox 的摘要说明/// public class WebMessageBox{ ////// 网页消息对话框 /// /// 要显示的消息文本 public static void Show(string Message) { HttpContext.Current.Response.Write(""); HttpContext.Current.Response.Write(""); HttpContext.Current.Response.End(); } ////// 网页消息对话框 /// /// 要显示的消息文本 /// 点击确定后跳转的页面 public static void Show(string Message, string Src) { HttpContext.Current.Response.Write(""); HttpContext.Current.Response.End(); } ////// 网页消息对话框 /// /// 要显示的消息文本 /// 关闭当前页面 public static void Show(string Message, bool Close) { if (Close) { HttpContext.Current.Response.Write(""); HttpContext.Current.Response.End(); } else { HttpContext.Current.Response.Write(""); HttpContext.Current.Response.End(); } }}