我使用打開一個彈出窗口並傳遞一些參數數組window.showModalDialog問題
window.showModalDialog("Test.aspx", MyArgs, WinSettings);
在Test.aspx的我有按鈕,按鈕點擊我有「的Response.Write(」測試「)當我點擊測試按鈕是越來越打開一個新窗口。 這能避免?
請幫
我使用打開一個彈出窗口並傳遞一些參數數組window.showModalDialog問題
window.showModalDialog("Test.aspx", MyArgs, WinSettings);
在Test.aspx的我有按鈕,按鈕點擊我有「的Response.Write(」測試「)當我點擊測試按鈕是越來越打開一個新窗口。 這能避免?
請幫
在模態窗口的<head>
,則包括此
<base target=_self>
最好我能想出是使一個iframe的頁面,只需加載Test.aspx文件到iframe中,然後,您需要傳遞或訪問MyA以某種方式將rgs數組添加到頁面。
當用戶點擊彈出窗口中的按鈕時,你想要做什麼?使用:
Response.write("Test")
是服務器端ASP代碼 - 這很可能不你想要什麼。如果你想要寫的頁面,你可能想要的東西,如:
<script type="text/javascript">
var myElem = document.getElementById('someDiv');
myElem.innerHTML = '<b>Hello World!</b>';
</script>