Microsoft
Software
Hardware
Network
Question : asp.net + gridview + linkbutton
i have a gridview that has a template field with a linkbutton in it, when the linkbutton is pressed an onclick event on the back end is fired.
on the behind code i get the value of the linkbutton with:
LinkButton lnkTest = (LinkButton)sender;
how can i get other data on the same row as the button was pressed? I would like to use some of the other fields in the same row in the code behind.
Answer : asp.net + gridview + linkbutton
get the GridView Row like below and then you can access othr data:
LinkButton lnkTest = (LinkButton)sender;
GridViewRow row = (GridViewRow) lnkTest.NamingContainer;
//Now you can get info from row.Cells
Random Solutions
Windows PFBACKUP can't find my Outlook PST.
Outlook: Errors have been detected in the file
Need a driver for sm bus controller on Dell d620
Some users can't access OWA
How to stablish a proper setup in MS Outlook 2003 encrypting mails
Active Directory Query - Servers Only - DG
[AutoIT] Creating a Control that Looks Like a Spreadsheet
HOW TO: remove the Anonymous User from the Everyone Group....
Multi Homed Windows 2008 Server
Oracle Build Table of tables