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
compacting backend database
How do I resolve these exchange connectivity test errors?
Connect to exchange using FVS318 VPN Firewall
ASP.Net -- add a ScriptManager and get "Failed to load source for:
http://localhost:63366/pub
recover missing emails - information store service stopped
Remove Old AD Computer Account via Command Line
Named anchor tags in IE
simple query help req'd in oracle
ASA 5505 DMZ won't Access Internet
Cannot re-enable firewall with group policy