Window.Open- ShowModalDialog- Window.Open Session丢失的Solution
生活随笔
收集整理的這篇文章主要介紹了
Window.Open- ShowModalDialog- Window.Open Session丢失的Solution
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
3個頁面:
第一個html.aspx:
<SCRIPT LANGUAGE="JAVASCRIPT">
??? function btnGetReturnValue_onclick1(t)
??? {
????? var temp= window.showModalDialog("display.aspx?t="+t,window,"center=yes;help=no;status=no;dialogHeight:600px;dialogWidth:850px;");
????????? if?? (temp!=undefined)??
????????????? {
??????????????????? document.getElementById('Label1').innerHTML = temp;
????????????? }
??? }
??</SCRIPT>
第二個display.aspx:
Response.Write("<script>var openobj = window;if(typeof(window.dialogArguments) == 'object'){??? openobj = window.dialogArguments;}openobj.open('html.aspx?type=yulan');</script>");
第三個(其實還是第一個):可以獲取到session
第一個html.aspx:
<SCRIPT LANGUAGE="JAVASCRIPT">
??? function btnGetReturnValue_onclick1(t)
??? {
????? var temp= window.showModalDialog("display.aspx?t="+t,window,"center=yes;help=no;status=no;dialogHeight:600px;dialogWidth:850px;");
????????? if?? (temp!=undefined)??
????????????? {
??????????????????? document.getElementById('Label1').innerHTML = temp;
????????????? }
??? }
??</SCRIPT>
第二個display.aspx:
Response.Write("<script>var openobj = window;if(typeof(window.dialogArguments) == 'object'){??? openobj = window.dialogArguments;}openobj.open('html.aspx?type=yulan');</script>");
第三個(其實還是第一個):可以獲取到session
轉(zhuǎn)載于:https://www.cnblogs.com/wzhxj/archive/2008/05/21/1204024.html
總結(jié)
以上是生活随笔為你收集整理的Window.Open- ShowModalDialog- Window.Open Session丢失的Solution的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。