将弹出窗口的datatable对象绑定到父页面的gridview [英] Binding datatable object of popup window to a gridview of parent page

查看:103
本文介绍了将弹出窗口的datatable对象绑定到父页面的gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好..专家..!

我正在做ERP项目,其中有两个页面,分别是"Parent.aspx"和"PopUp.aspx".
简单来说,我的要求是我想``将弹出窗口的datatable对象绑定到父页面的gridview''.

请帮助我.

Hello..Experts..!

I''m doing ERP project where there are 2 pages namely ''Parent.aspx'' and ''PopUp.aspx''.
In simple sentence my requirement is I want to ''Bind datatable object of popup window to a gridview of parent page''.

Plz.. Help me.

推荐答案

将弹出窗口的datatable对象绑定到父页面的gridview.
有多种方法可以实现它:
1.使用任何一种可行的状态管理技术.示例-会话.将数据表存储在弹出窗口中,然后在父页面中使用它
2.使用ShowModalDialog,它允许关闭时返回一个值.将此用作参数,并将数据表传递给父表以供使用.

尝试!
Bind datatable object of popup window to a gridview of parent page.
There are multiple ways to achieve it:
1. Use any one of the state management techniques that would work. Example - Session. Store the datatable in it in popup and later use it in your parent page
2. Use ShowModalDialog that allows a return value on close. Use this as a parameter and pass the datatable to parent for use.

Try!


如果我理解您的问题是正确的..
首先,从父页面打开一个弹出窗口.在弹出页面中,创建了一个datatable对象.现在可能
>关闭弹出窗口后,您希望该数据表对象持久存在并将其绑定到dataview

>通过在父窗口的弹出窗口中执行的某些事件,您希望创建的datable可以绑定到父窗口的dataview.

索恩.
在弹出窗口中创建数据表时,使其保持会话状态.不,您可以使用JavaScript刷新父窗口
>突然关闭或
>关于在弹出窗口上执行的某些操作.

在父窗口上放置代码以检查会话是否存在数据绑定并将其绑定.
If I am understanding you question correctly ..
First a popup is opened from parent page . In popup page a datatable object got created . Now probably
> after closing the popup you want that datatable object to persist and bind it to dataview
or
>by some event performed in pop of parent window you want created datable to bin to dataview of parent.

Soln.
Keep the Datatable in session when it''s created in pop up. No you can use javascript to refresh the parent window
> on pop closing or
> on some action performed on popup.

On parent window put to code the code to check the session if datable is present and bind it.


这篇关于将弹出窗口的datatable对象绑定到父页面的gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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