window.showModalDialog被IE拦截
csdn里高手无数。。帮我看看这个问题
一般来说 window.showModalDialog 这样打开模式对话框 不会被IE拦截
但 我的一个小项目里被IE给拦了
点击一个服务器端button事件 生成一个Session 然后 新打开一个页面 拿到这个生成的session
处理数据
具体代码如下
/// <summary>
/// 预览
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnBrowse_Click(object sender, EventArgs e)
{
string zhcnstr = CommClass.FBEditorTextReplace(ChineseFTBEditor.Text);
string enusstr = CommClass.FBEditorTextReplace(EnglishFTBEditor.Text);
Session["HtmlBrowse"] = MakeSession(zhcnstr,enusstr,edtortype);
string JavaScript = "<script language='javascript'>window.showModalDialog(\"./FrmBrowse.aspx\",\"页面预览\", \" help: No; resizable:no;status:false;dialogWidth:800px\");</script>";
Page.RegisterStartupScript("onclick", JavaScript);
}