using System;
using System.Web;
using System.Web.UI;
namespace TopWin.Common
...{
/**//// <summary>
/// 对话框类
/// </summary>
public class MsgBox
...{
//需要这个的就自己引用System.Web.Extensions.dll
Ajax用的警告框#region Ajax用的警告框
//public static void Alert(string _Msg, UpdatePanel UP_Name)
//{
// System.Web.UI.ScriptManager.RegisterClientScriptBlock(UP_Name, typeof(UpdatePanel), "AjaxMsgBox", "alert(''" + _Msg + "'');", true);
//}
#endregion
警告框#region 警告框
/**//// <summary>
/// 警告框
/// </summary>
/// <param name="_Msg">警告字串</param>
/// <returns>警告框JS</returns>
public static void Alert(string _Msg)
...{
string StrScript;
StrScript = ("<script language=javascript>");
StrScript += ("alert(''" + _Msg + "'');");
StrScript += ("</script>");
System.Web.HttpContext.Current.Response.Write(StrScript);
}
/**//// <summary>
/// 警告框
/// </summary>
/// <param name="_Msg">警告字串</param>
/// <param name="_Page">this</param>
/// <returns>警告框JS</returns>
public static object Alert(string _Msg, Page _Page)
...{
string StrScript;
StrScript = ("<script language=javascript>");
StrScript |