当前位置: 代码迷 >> ASP.NET >> 用window.showModalDialog时,ASP.NET中子窗口怎么操作传递过来的window.dialogArguments(JS)这个值!
  详细解决方案

用window.showModalDialog时,ASP.NET中子窗口怎么操作传递过来的window.dialogArguments(JS)这个值!

热度:1410   发布时间:2013-02-26 00:00:00.0
求助:用window.showModalDialog时,ASP.NET中子窗口如何操作传递过来的window.dialogArguments(JS)这个值!!!!
用window.showModalDialog()打开模态窗口时,子窗口通过document.Form1.TextBox1.value=window.parent.dialogArguments接受父窗口传递过来的值,现在的问题:怎么将JS中的document.Form1.TextBox1.value这个变量传递到ASP.NET中来,因为我需要对父窗口传递过来的值做个判断然后在子窗口加载不同项(数据加载),我试过一些通过第三者来传值的方法,都不得要领,至少用TextBox1.Text是不行的,asp.net中得不到window.parent.dialogArguments这个值。
对JS也是刚入门,不清楚这种情况怎么来传递是最合适的,希望大家指教,谢谢!

------解决方案--------------------------------------------------------
通过url参数传就可以window.showModalDiaslog( "aaa.aspx?value=123 ",...
  相关解决方案