相信以後必然有用到的地方!
1、在ASP.Net 2.0中,你可以把A頁面的提交頁面設置為B頁面,在B頁面中,就可以獲取A頁面裡的控件值。
2、你可以把值存放在CookIE或Session中,在B頁面中獲取。
page1
<Html>
<HEAD>
<TITLE> PAGE 1 </TITLE>
<SCRIPT>...
function click1()
...{
window.showModalDialog("page2.Html",window,"height=200,width=400");
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE = TEXT id = txt1> <br>
<input type = submit id = btn1 value = "提交" onclick="click1()">
</BODY>
</Html>
page2
<Html>
<HEAD>
<TITLE> PAGE 2 </TITLE>
<BODY>
<INPUT TYPE = TEXT id = txt11 onkeyup="clickbrushtxt1()"> <br>
<SCRIPT>...
txt11.value = window.dialogArguments.document.getElementById(''txt1'').value;
</SCRIPT>
</BODY>
</Html>