如何将选定的列详细信息传递到.net中的另一页 [英] how to pass selected column details to another page in .net

查看:53
本文介绍了如何将选定的列详细信息传递到.net中的另一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

我有一个网格视图,其中我要绑定带有复选框的数据.现在,我想将选定的列数据传递到另一个页面.

hi

i have grid view in which i am binding come data with checkboxs.Now i want to pass the selected columns data to another page.

推荐答案

有很多方法;传递查询字符串,在会话中放置值,将条目添加到数据库.您必须对问题进行更具体的说明才能得到更好的答案.
There are a number of ways; pass a query string, place values in session, add entries to a database. You ''ll have to be a bit more specific in your question to get any better answer.


此链接将使您全面了解" ASP.NET状态管理 b>".
ASP.NET状态管理概述

要将数据从一页传递到另一页,您可以使用以下两种方法之一.
1)查询字符串
2)会议
2)Cookies
This link will give you overall idea of "ASP.NET State Management".
ASP.NET State Management Overview

To pass Data from one Page to another you may use either of below.
1) Query strings
2) Session
2) Cookies


尝试一下

第1页编码
Try this

page1 coding
DataSet ds = (DataSet)DataGrid.DataSource;
Session["MyDataSet"] = ds;


第2页编码


page2 coding

DataSet ds = (DataSet)Session["MyDataSet"];
DataGrid.DataSource = ds;
DataGrid.DataBind;


这篇关于如何将选定的列详细信息传递到.net中的另一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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