獲取模态窗口返回值:(這部分是.NET中調用)
var a = window.showModalDialog("http://192.168.16.13/yins/html/ibeB4000P122XS2.asp?PC_DATE1="+StaYear+"&PC_DATE2="+EndYear,"","dialogWidth: 450px; dialogHeight: 380px; center: Yes");http://192.168.16.13/yins/html/ibeB4000P122XS2.asp
<SCRIPT language='Vbscript'>
dim DataArray()
<% response.write("ReDim preserve DataArray(1,0)"&chr(10)) %>
  DataArray(0,0)=L_SUCC_FLAG
  DataArray(1,0)=L_FILE_NAME
  DataArray1=DataArray
  window.returnvalue=DataArray1
 window.close()
</SCRIPT>

解决方案 »

  1.   

    在http://192.168.16.13/yins/html/ibeB4000P122XS2.asp里是否有错误,建议在window.returnValue=DataArray1 之前用alert("good")测试下
      

  2.   

    to: viznet(小兔子)
    我用alert("good")测试過,可以,且可以正常運行http://192.168.16.13/yins/html/ibeB4000P122XS2.asp這個程序。to:  hedonister(★★★★★) 
    我在ASP頁面是可以獲取值的,但在.NET中就不可以了。
      

  3.   

    what about "alert(DataArray1)"
      

  4.   

    可以了,謝謝 viznet(小兔子), hedonister(★★★★★)
    原來:showModalDialog 的 window.returnValue 只能针对同域的页面,不同域的页面不能这样传递信息。