I've got a gridview setup that has an image button in the first column of every record. I'm wanting this image button to whenever clicked send the primary key value for that record back to the code behind page. I guess what I am asking is what would be the best way to accomplish this? I've thought of a way to do it using javascript but I know there has to be an easier way...I'm fairly new to asp.net....also this is using vb Any suggestions greatly appreciated!
You can add template field in the grid view and then add asp:imagebutton in the itemtemplate this is the way to add imagebutton in the grid
It can be done by adding the template field in the grid view and than add item template into template field after that you will be able put the image button into the grid view...