ASP.NET GridView Tutorial
Lesson 299 of 301 · Part 61 How to get value from a gridview templatefield · Database
Part 61 How to get value from a gridview templatefield
Link for all dot net and sql server video tutorial playlists
http://www.youtube.com/user/kudvenkat/playlists
Link for slides, code samples and text version of the video
http://csharp-video-tutorials.blogspot.com/2014/09/part-61-how-to-get-value-from-gridview.html
In this video we will discuss, how to get value from a control that is present inside an itemtemplate of a gridview templatefield column.
We want to retrieve products from Products table and display them in a GridView control. The ID field in the GridView control should be a TemplateField. Inside the Template field we should have a LinkButton, this should display the Product ID and it must be clickable.
Upon clicking on the Product ID, the user should be redirected to product details page and this page should display all the details of the selected product.