Respose
Respose
也可以自己寫方法
public static void ShowMessage(System
{
page
}
調用的時候
ShowMessage(this
下面是整個類的代碼你可以挑著用
using System;
using System
using System
namespace WorkLogic
{
/// <summary>
/// 顯示消息提示對話框
/// </summary>
public class MessageBox
{
private MessageBox()
{
}
/// <summary>
/// 顯示消息提示對話框
/// </summary>
/// <param name="page">當前頁面指針
/// <param name="msg">提示信息</param>
public static void ShowMessage(System
{
//page
page
}
public static void ShowMessage(System
{
control
}
/// <summary>
/// 控件點擊 消息確認提示框
/// </summary>
/// <param name="page">當前頁面指針
/// <param name="msg">提示信息</param>
public static void ShowConfirm(System
{
//Control
Control
}
/// <summary>
/// 顯示消息提示對話框
/// </summary>
/// <param name="page">當前頁面指針
/// <param name="msg">提示信息</param>
/// <param name="url">跳轉的目標URL</param>
public static void ShowAndRedirect(System
{
StringBuilder Builder = new StringBuilder();
Builder
Builder
Builder
Builder
page
}
/// <summary>
/// 輸出自定義腳本信息
/// </summary>
/// <param name="page">當前頁面指針
/// <param name="script">輸出腳本</param>
public static void ResponseScript(System
{
page
}
/// <summary>
/// 顯示消息提示對話框
/// <param name="page">當前頁面指針
/// <param name="msg">提示信息</param>
/// <param name="url">跳轉的目標URL</param>
public static void ShowAndRedirect(System
{
StringBuilder Builder = new StringBuilder();
Builder
Builder
Builder
Builder
page
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/14134.html