将数据从modalpopupextender窗口的gridview传递到父文本框 [英] Pass Data from modalpopupextender window's gridview to parent textbox

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

问题描述

非常肯定人们会碰到这个。



问题:

有一个搜索客户按钮,点击它,打开基于modalpopupextender的模态窗口。

在模态窗口中,搜索结果被加载到gridview中,用户可以选择所需的客户。



现在我如何将这些选定的客户详细信息传递给父窗口中的文本框。

现在我尝试在gridview的rowselected事件中传递值,但是我无法访问父级以这种方式形成文本框。



如果有人可以指引我朝着正确的方向前进,那就太棒了。

解决方案

< blockquote>按照本文中的步骤操作:从模态弹出窗口返回值 [ ^ ],我相信它正是您所需要的。


Pretty sure people would have come across this.

Issue:
There is a search customer button, on clicking it, opens a modal window based on modalpopupextender.
On the modal window, search results are loaded into a gridview and the user is allowed to select the desired customer.

Now how do I pass those selected customer details to textboxes in parent window.
Right now I tried passing the value in the rowselected event of the gridview, but Iam not able to access the parent form's textbox in that way.

Would be great if someone can direct me in the right direction.

解决方案

Follow the steps in this article: Returning a value from a modal popup[^], I believe it is exactly what you need.


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

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