I am trying to open other page and pass data for selected row in gridview to be displayed in that page when user click the select button. i want to display the data in text box. so that, user can make editing from that page. i dont know how to pass the data for that selected row to be displayed in other page. Can someone help me??
maria_mj
0
Light Poster
Recommended Answers
Jump to Post>i dont know how to pass the data for that selected row to be displayed in other page. Can someone help me??
Use Session state.
Click handler of button of page1.aspx
Session["firstname"]=textbox1.Text; Session["lastname"]=textbox2.Text;
Page_load handler of page2.aspx
if(!IsPostBack){ if(Session["firstname"]!=null) TextBox1.Text=Session["firstname"].ToString(); if(Session["lastname"]!=null) TextBox1.Text=Session["lastname"].ToString(); …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.