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
Internet Explorer Keeps shutting down
how to deal with more then one Document Class !
asp.net page to test database connectivity
IIS 6.0 asp.net 2.0 cpu performance issue
JSON Value Retrieve
PS3 attached with HDMI to HDTV blacking out
make a new bridge in cisco catalyst 2950
how to open the PDF in a new browser window using jsf ?
Is there a good solution for monitoring the status of RAID array in HP or IBM server run Windows 2003?
T-SQL: Count number of tables in the DB (SQL server 2008)