Gridview regGMGowtham manju15yAsked May 25, 2011, 5:36 AM EDTSolvedShareLinkedInXCopy linkSavehow to pass value by selecting the grid view to label in another page
Gridview regGMGowtham manju15yAsked May 25, 2011, 5:36 AM EDTSolvedShareLinkedInXCopy linkSavehow to pass value by selecting the grid view to label in another page
Abhimanyu K VatsaRank #14 · 51.7K reputation15y agoPosted May 25, 2011, 5:48 AM EDT✓ Accepted answer0there are many ways, try your suitable one. (i) using hyperlink (ii) using code-behindSample One AllowPaging = "True" AutoGenerateSelectButton="True" AllowSorting="True" BackColor="#E8E8E8" BorderColor="#003399" BorderStyle="Solid" BorderWidth="1px" Height="375px" Width="823px" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1" onselectedindexchanged="gvAgentList_SelectedIndexChanged"> ReadOnly="True" SortExpression="ID" /> SortExpression="Description" /> Select OrRead Thesehttp://www.dotnetcurry.com/ShowArticle.aspx?ID=147http://csharpdotnetfreak.blogspot.com/2009/09/pass-send-gridview-row-data-otherpage.html0PMPrabhu M144 reputation15y agoPosted May 25, 2011, 5:42 AM EDT0place the gridview in default.aspx add the Hyperlink field to gridview DataNavigateUrlFormatString="default2.aspx?myval={0}" DataTextField="ccquestion" HeaderText="Questions : " /> In default2.aspx:label1.text=Request.QueryString["myval"].ToString();Try this...0GMGowtham manju157 reputation15y agoPosted May 25, 2011, 6:32 AM EDT0ya,thanks regards, gowtham0Abhimanyu K VatsaRank #14 · 51.7K reputation15y agoPosted May 25, 2011, 9:36 PM EDT0is your problem solved, mark the right answer.0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign inKnow the answer?Answer a question in the forums and earn +20 SHARP for every answer.See unanswered questionsForumsTop experts01Arun PottiAnswers in the forums20answers02Tahir AnsariAnswers in the forums5answers03Kamlesh KumarAnswers in the forums5answers04Sam HobbsAnswers in the forums4answers05Željko PerićAnswers in the forums3answers?YouYour name goes here.Every answer: 20 SHARP.JoinFull leaderboard →2026DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
PMPrabhu M144 reputation15y agoPosted May 25, 2011, 5:42 AM EDT0place the gridview in default.aspx add the Hyperlink field to gridview DataNavigateUrlFormatString="default2.aspx?myval={0}" DataTextField="ccquestion" HeaderText="Questions : " /> In default2.aspx:label1.text=Request.QueryString["myval"].ToString();Try this...0
Abhimanyu K VatsaRank #14 · 51.7K reputation15y agoPosted May 25, 2011, 9:36 PM EDT0is your problem solved, mark the right answer.0
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 25, 2011, 5:48 AM EDT
(i) using hyperlink (ii) using code-behind
Sample One
Or
Read These
http://www.dotnetcurry.com/ShowArticle.aspx?ID=147
http://csharpdotnetfreak.blogspot.com/2009/09/pass-send-gridview-row-data-otherpage.html
Prabhu M144 reputationPosted May 25, 2011, 5:42 AM EDT
add the Hyperlink field to gridview
DataTextField="ccquestion" HeaderText="Questions : " />
In default2.aspx:
label1.text=Request.QueryString["myval"].ToString();
Try this...
Gowtham manju157 reputationPosted May 25, 2011, 6:32 AM EDT
Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 25, 2011, 9:36 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts