|
}
26.对话框 private static string ScriptBegin = "<script language=\"JavaScript\">"; private static string ScriptEnd = "</script>";
public static void ConfirmMessageBox(string PageTarget,string Content) {
string ConfirmContent="var retvalue="/blog/window.confirm('"+Content+"');"+"if(retValue){window.location="'"+PageTarget+"';}";
ConfirmContent=ScriptBegin + ConfirmContent + ScriptEnd;
Page ParameterPage = (Page)System.Web.HttpContext.Current.Handler; ParameterPage.RegisterStartupScript("confirm",ConfirmContent); //Response.Write(strScript);
} http://www.cnblogs.com/robber/archive/2007/01/09/615835.html (出处:清风网络学院)
上一篇:用post方法从网上抓取信息
下一篇:利用css和js实现firefox和IE都支持的页面局部打印
|