将Childwindow文本框值传递给父窗口gridview [英] Pass Childwindow textbox Value To Parent Window gridview

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

问题描述

当用户从父窗口点击按钮时,我使用java脚本打开一个新窗口(子)。



在新窗口(孩子),我有文字框和按钮,我需要获取文本框的值并在用户点击按钮时传递给父窗口gridview,在关闭子窗口时,我需要显示父窗口的值gridview,我该怎么做? br $>


1-父窗口有按钮,点击子窗口打开

2-子窗口有文本框和按钮,当点击按钮时,得到文本框的值并传递给父窗口和关闭子窗口。

3-并在父窗口中将子窗口文本框值显示给gridview。



我希望很清楚

解决方案

把它放在你的按钮clickevent



me .parent.gridview1.coloumn(0).text = textbox1.text

me.close



---也许是这样的 - -

I used java script to open a new window(child) when user clicks on button from parent window.

On new window(child), I have text box and button, I need to get the value of the text box and pass to parent window gridview when user clicks on button, while closing the child window, I need display my value gridview of the parent window , how can I do that?

1- parent window has button, clicked child window opened
2- child window has text box and button, when button clicked, get the value of the text box and pass to parent window and close child window.
3- and display the child windows text box value to gridview in parent window.

I hope it is clear

解决方案

put this in your button clickevent

me.parent.gridview1.coloumn(0).text=textbox1.text
me.close

---maybe something like that--


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

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