那位大哥帮我看看这段代码,我调用showModelessDialog 打开一个网页对话框,怎么一弹出就自动关闭了,小弟只有12分了,现加上10(10分)

  • 主题发起人 主题发起人 wzjlg
  • 开始时间 开始时间
W

wzjlg

Unregistered / Unconfirmed
GUEST, unregistred user!
StringBuilder ScriptString = new StringBuilder();
ScriptString.Append(&quot;<script language=javascript>&quot;);
ScriptString.Append(&quot;function ShowTest()&quot;);
ScriptString.Append(&quot;{&quot;);
ScriptString.Append(&quot;
window.showModelessDialog('test.aspx', window, 'dialogHeight: 575px;
dialogWidth: 465px;
edge: Raised;
center: Yes;
help: No;
resizable: No;status:Yes;scroll: No;' );&quot;);

ScriptString.Append(&quot;}&quot;);
ScriptString.Append(&quot;</script>&quot;);
String js = ScriptString.ToString();
if (!IsClientScriptBlockRegistered(&quot;ShowTest&quot;))
{
RegisterClientScriptBlock(&quot;ShowTest()&quot;, js);
}
LinkButton1.Attributes.Add(&quot;OnClick&quot;, &quot;ShowTest()&quot;);
网页对话框网弹出就关闭了
 
会不会是被拦截弹出窗口的插件干掉了?
 

Similar threads

后退
顶部