Click here to Skip to main content
15,671,149 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have two pages . First page have a gridview and another page have a form with labels and textboxes. i have an edit hyperlink on each row of gridview .On click on particular row i want to pass id in querystring and display all data in those form with respectives values. how to do it ..?
Posted

please check this link..

http://www.dotnetbull.com/2013/05/how-to-handle-click-event-of-linkbutton.html

after that u can pass those values to another page using query string.
 
Share this answer
 
v2
Comments
Member 10949397 18-Jul-14 3:31am    
thankz for the reply i got the solution to this
Avik Ghosh22 23-Jul-14 8:08am    
welcome. :)
Add hyperlink field to gridview

C#
<asp:hyperlinkfield datanavigateurlfields="ID" 
                    DataNavigateUrlFormatString="ScondPage.aspx?ID={0}" 
                    Text="Edit" /></asp:hyperlinkfield>
 
Share this answer
 
v2
Comments
Member 10949397 18-Jul-14 3:31am    
thankz for the reply i got the solution to this

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