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
Adding one cell to the bottom of a named range defined byan OFFSET
Creating a Dynamic Form from SQL database tables in ColdFusion
MAC Mail with Exchange 2007 Attachment Issue
Error message when replying, sending, openning email in OWA
exiting users from database
Can't connect to local MySQL server through socket
Laptop running windows vista, SYSTEM process goes to 100% cpu after being accessed by any computer on the network.
Excel Username Macro
VB.NET - New to MultiThreading - Parameter Count Mismatch
Cisco 877 DHCP not giving addresses