如何将多个gridview行发送到另一个页面并在转发器中填充这些行? [英] How to send multiple gridview rows to another page and populate those rows in the repeater ?

查看:51
本文介绍了如何将多个gridview行发送到另一个页面并在转发器中填充这些行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个显示数据行的转发器.我已经使用JavaScript为用户添加了新的行到转发器.

添加新行后,其中一个单元格上将显示一个图像.单击该图像将打开一个新屏幕.

新屏幕具有搜索记录的功能.搜索结果显示在数据网格中.

当用户单击任何行时,相同的数据将被添加到父页面的转发器中的新添加的行.

我希望进行此功能,以便可以一次添加多种资源.
我在每一行中都放入了复选框并单击了一个按钮.单击按钮会将所有选中的行添加到父页面中的转发器.

您能告诉我发送到父页面时如何处理这些多行吗?

我正在使用parent.opener来调用并将值传递到父页面.

谢谢

I have a repeater showing the rows of data.I have used javascript for user to add new rows to the repeater.

When the new row gets added, a image is displayed on one of the cells .Clicking on that image opens up a new screen.

New screen has ability to search for the records.The search results are shown in a datagrid.

When the user click any of the rows, the same data gets added to the newly added row in repeater of the parent page.

I wish to make this functionality so that mulitple resources can be added at once.
I have put in the check boxes on every row and a button. Button click will add all the checked rows to the repeater in the parent page.

Can you tell me how to handle these multiple rows when sending to the parent page ?

I am using parent.opener to call and pass the values to the parent page.

Thanks

推荐答案

您对父页面"一词的使用使我认为这是一个弹出窗口.很难知道它是哪种弹出窗口,但我认为它是一个真正的其他窗口,而不仅仅是浮动div.我猜在那种情况下,您可以将值返回为XML.在不知道您是在做回发还是使用AJAX的情况下也很困难,但是我倾向于返回有问题的colndmns的ID,如果您需要其他数据,请进行AJAX调用以获取它来自数据库.
Your use of the term ''parent page'' makes me think this is a popup. It''s hard to know what sort of popup it is, but I assume it''s a real other window, not just a floating div. In that case, you could return the values as XML, I guess. It''s also hard without knowing if you''re doing postbacks or using AJAX, but I''d be inclined to return the ids of the colunmns in question and if you need the other data, make an AJAX call to get it from the DB.


这篇关于如何将多个gridview行发送到另一个页面并在转发器中填充这些行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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