Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Posted

Which kind of attributes? Are you talking about GridView1.Attributes ?
Try this:
C#
if(gvTitle.Attributes["ID"] != null){
    Session["ID"] = gvTitle.Attributes["ID"].ToString();
}


--Amit
 
Share this answer
 
what is gvTitle in this...!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900