如何将子窗口的文本框值传递给父窗口的文本框 [英] How to Pass Text Box Value of Child Window to Text Box of Parent Window

查看:117
本文介绍了如何将子窗口的文本框值传递给父窗口的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击父窗口中的链接按钮时,我正在使用一个父窗口,子窗口正在打开,我正在选择网格视图单元格值到子窗口的文本框中现在我想要转移拾取父窗口文本框和子窗口的文本框值需要通过单击子窗口上的确定按钮关闭



可以帮助吗?

解决方案

在您的子窗口中使用:



 窗口 .opener。 document  .getElementById(  YourTextBoxID)。value =  新值; 
window .close();


我认为这对你有帮助。



http://forums.asp.net/t/ 1925639.aspx [ ^ ]

试试这个,

 window.opener。


Hi, I am Using one Parent Window when I Click the Link Button in the Parent Window, The Child Window is Opening and I am picking the Grid View Cell Value into the Text Box of Child Window Now i want to transafer the Picked Text Box Value to Parent Window Text Box and The Child Window Need To close By Clicking OK Button on the Child Window

Can U Help?

解决方案

In your child window use:

window.opener.document.getElementById("YourTextBoxID").value = "New Value";
window.close();


I think this is helpful for you.

http://forums.asp.net/t/1925639.aspx[^]


Try this,

window.opener.


这篇关于如何将子窗口的文本框值传递给父窗口的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆