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
to check if a download will be spyware free
Student Profiles
Exchange 2003 to Exchange 2010 Migration
iTunes Management
The future of VBA
Teradata Where Clause - Limit date to this month
Win 2003 server dns
Carrier Unlock for iPhone 3GS iOS 4.0.1 (8A306)
Will there be a 13" Macbook with an iCore processor anytime soon? Safe to buy C2D?
Best Practice Disk Partitions