Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanted to pass the value from gridview to another page and according to that I have load the values on another page. How can I do this ?
Posted
Updated 2-Apr-14 1:31am
v2

you can use hyperlink field with in Gridview
 
Share this answer
 
I have done similar stuff couple of years back. Please check it out.

How to pass multiple values using GridView HyperLinkField ? [^]

Hope this will help you !
 
Share this answer
 
XML
<asp:TemplateField HeaderText="View/Edit">
                                                 <ItemTemplate>
                                                 <asp:HyperLink ID="Hyplapprover" runat="server" NavigateUrl='<%# Eval("req_id", "pagename.aspx?req_id={0}") %>'>View</asp:HyperLink>
                                             </ItemTemplate>
                                             <HeaderStyle Wrap="False" />
                                             </asp:TemplateField>

This Statement will pass the req_id as a querystring value.
 
Share this answer
 
v2

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