/// <summary>
/// 遮罩提示窗口
/// </summary>
/// <param name="w">宽度</param>
/// <param name="h">高度</param>
/// <param name="msgtitle">窗口标题</param>
/// <param name="msgbox">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="msgcss">CSS样式</param>
protected void JscriptMsg(int w, int h, string msgtitle, string msgbox, string url, string msgcss)
{
string msbox = "";
msbox += "<script type=\"text/javascript\">\n";
msbox += "parent.jsmsg(" + w + "," + h + ",\"" + msgtitle + "\",\"" + msgbox + "\",\"" + url + "\",\"" + msgcss + "\")\n";
msbox += "</script>\n";
ClientScript.RegisterClientScriptBlock(Page.GetType(), "JsMsg", msbox);
}
/// <summary>
/// 添加编辑删除提示
/// </summary>
/// <param name="msgtitle">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="msgcss">CSS样式</param>
protected void JscriptPrint(string msgtitle, string url, string msgcss)
{
string msbox = "";
msbox += "<script type=\"text/javascript\">\n";
msbox += "parent.jsprint(\"" + msgtitle + "\",\"" + url + "\",\"" + msgcss + "\")\n";
msbox += "</script>\n";
ClientScript.RegisterClientScriptBlock(Page.GetType(), "JsPrint", msbox);
}
转载于:https://www.cnblogs.com/Mr0909/archive/2011/07/24/2115542.html