简体   繁体   中英

Pass textbox value from child window to parent page in asp with out post back in parent

我创建了一个Asp应用程序,使用了查找器选项子窗口。当我们选择查找器选项时,从网格视图中选择的值显示了文本框(例如.id和名称)。这两个文本框值传递给父级页面,在子页面中选择之后。从子页面传递到父页面时,父页面不应刷新或回传。

I am assuming you are using javascript to open the window. If that is the case, then you can use window.opener to put data back into the opening window:

 $(window.opener.document).find('#someid').val("Some Value"); 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM