建议你不要用modaldialog,用window.open打开一个非模式窗体不就简单多了
解决方案 »
- 在Asp.net web开发中添加图片水印的方法
- 怎么才能ctrl+Enter提交button控件
- 请各位有经验的大哥大姐来帮帮弟
- TabStrip 和MultiPage
- 求一sql语句~~~谢谢~~~
- 请问2000专业版为什么装不上SQLSERVER服务器端?
- 关于JS 根据浏览器获取模式提示错误
- .net如何连接sybase,急啊,分不够可以加
- 关于避免页面刷新重复提交的办法SubmitOncePage
- 奇怪的时间问题?
- 怎样在asp.net页面内调用word显示一个已经存在的word文件,并追加一定的内容
- 菜鸟问题: 我新建一个asp.net的application怎么总是不成功呢,老提示说什么对应位置不一致?
dialogArguments.location.href=dialogArguments.location.href;
window.close();
value=window.showModalDialog("DialogForm.aspx");
WebForm1.submit();
</script>
我想做的是在关闭modalDialog的时候刷新下面的那个aspx,这样做可以吗?
另外你那段代码放到哪里?
<INPUT type="button" value="Button" onclick=" var value=window.showModalDialog('DialogForm.aspx');alert(value);WebForm1.submit();">
modalDialog内容相同的页面,如何处理这个问题?
<base target="_self">这个东西是什么意思?
TARGET
Sets or retrieves the window or frame at which to target content.
_self
Load the linked document into the window in which the link was clicked (the active window).
value=window.showModalDialog("DialogForm.aspx", window);
</script>
inside DialogForm.aspx:<script language="javascript">
function window.onunload()
{
window.dialogArguments.location.reload(true);
}
</script>
inside DialogForm.aspx:
<script language="javascript">
function YourControlID.onclick()
{
window.dialogArguments.document.all("SomeButtonID").click();
}
</script>
ibeyond.org正在建设中,即将推出WebAnyWhere测试版,敬请关注。
WebAnyWhere可以将您的顶级域名解析到您的动态ip上去,让您拥有自己的互联网主机。
ftp://neversaydie.3322.org:8858
<form runat="server">
<asp:button id="btn1" runat="server" text="show" />
<asp:button id="btn2" runat="server" text="open modal dialog" />
</form>
<script language="C#" runat="server">
void Page_Load (Object sender, EventArgs e)
{
btn1.Attributes["onclick"] = "javascript:alert('yes! I am clicked!');return false;";
btn2.Attributes["onclick"] = "javascript:showModalDialog('child.aspx',window);return false;";
}
</script>2. child.aspx:
<form runat="server">
<asp:button id="YourControlID" text="show" runat="server" />
</form>
<script language="javascript">
<script language="C#" runat="server">
void Page_Load (Object sender, EventArgs e)
{
YourControlID.Attributes["onclick"] = "javascript:window.dialogArguments.document.all('btn1').click();return false;";
}
</script>