如何只获取所选页面的gridview数据 [英] how to get datas of gridview for selected page only

查看:58
本文介绍了如何只获取所选页面的gridview数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello frens,

i有这个问题,我想导出gridview的数据导出使用excel但问题是我怎么知道用户点击哪个页面以及如何得到所选页面索引数据的值。

请尽快回复

谢谢

hello frens,
i have this problem that i want to export the datas of the gridview to export using excel but the problem is that how can i know on which page the user is clicking and how to get the values of the selected page index datas.
please reply soon
thanks

推荐答案

你可以保存一些数据使用会话 [ ^ ]对象。

示例:

You can save some data using Session[^] object.
Example:
Session["FirstName"] = FirstNameTextBox.Text;
Session["LastName"] = LastNameTextBox.Text;



获取 GridView.SelectedIndex [ ^ ]属性,使用 SelectedIndexChanging [ ^ ]或 SelectedIndexChanged [ ^ ]事件。


To get GridView.SelectedIndex[^] property, use SelectedIndexChanging[^] or SelectedIndexChanged[^] event.


这篇关于如何只获取所选页面的gridview数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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