如何使用Gridview数据绑定值并为其创建会话... !!! [英] How to use the Gridview databound values and create session for that...!!!
本文介绍了如何使用Gridview数据绑定值并为其创建会话... !!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我拥有属性(id,名称)的gridview
从该gridview我必须检查id并为该id创建会话。
我必须使用该会话id重定向页面。
帮助我完成这项任务...
解决方案
哪种属性?你在谈论GridView1.Attributes
?
试试这个:
if (gvTitle.Attributes [ ID] != null ){
会话[ ID] = gvTitle.Attributes [ ID]。ToString();
}
--Amit
这是什么gvTitle ... !!!
Am having the gridview with attributes(id,name)
From that gridview i have to check the id and create the session for that id.
from that i have to redirect the page using that session "id".
Help me to do this task...
解决方案
Which kind of attributes? Are you talking aboutGridView1.Attributes
?
Try this:
if(gvTitle.Attributes["ID"] != null){ Session["ID"] = gvTitle.Attributes["ID"].ToString(); }
--Amit
what is gvTitle in this...!!!
这篇关于如何使用Gridview数据绑定值并为其创建会话... !!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文