Java脚本showModalDialog问题 [英] Java Script showModalDialog Problem

查看:51
本文介绍了Java脚本showModalDialog问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#.net 3.5中,我正在使用JavaScript ShowModelDialog函数打开一个子窗口,如下所示.

In C#.net 3.5 I am opening a sub-window using JavaScript ShowModelDialog Function as below.

function OpenChildWindow()
   {
       //open a new dialog window
       var sFeatures="dialogHeight: 650px;";
       sFeatures += "dialogWidth: 950px;";
       sFeatures += "dialogHide: 1;";
       sFeatures += "center: yes;";
       //sFeatures += "edge: sunken;";
       sFeatures += "scroll: no;";
       sFeatures += "status: yes;";
       sFeatures += "resizeable: yes;";
       sFeatures += "";
       var url = "LL_ADDRESS.aspx";
       entryWindow=window.showModalDialog (url, "LL_ADDRESS", sFeatures);
   }



窗口打开,然后我可以在其中进行编辑.
但是,如果我单击子窗口中的一个简单按钮(例如清除子窗口),则不是清除子窗口,而是打开了另一个(第3个)窗口.

我想避免打开第三个窗口.
我该如何实现?

谢谢!!!

Ernest



The window opens and then I can edit in that.
But if I click on a simple button (say clear sub-window) in the sub-window then instead of clearing the sub-window, another (3rd) window is opening.

I want to avoide the opening of third window.
How do I achive this?

Thanks!!!

Ernest

推荐答案

只需在模式页面(LL_ADDRESS.aspx)中将其放在< head>
simply in the modal page(LL_ADDRESS.aspx) put this to the <head>
<BASE target="_self">


解决方案积分:此链接
顺便说一句,我不禁指出您是否进行了简单的Google搜索:从window.showModalDialog回发",出现的第一个链接将为您提供确切的答案.


Solution Credits: this Link
by the way i cant help pointing out if you had done a simple google search:"postback from window.showModalDialog" the first link that came up wouldve given you the exact answer.


这篇关于Java脚本showModalDialog问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆