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
Apply gradient to cuved shape, like an 'S'
Where is the Default Printer set in Crystal Reports?
window 7 OS: blank (black) screen only, as it logs in
Need to show image above datalist if user selects. the image.
Exchange 2010 Antivirus Options
added a function to webservice. Why can't i see it by intellesense on the client
Cisco ASA 8.3 RDP Configuration Syntax
T SQL Query and Dates
Insert Script from the command prompt
Exchange 2010 resource mailbox for meeting room