Microsoft
Software
Hardware
Network
Question : Capture ClientID of a linkbutton sender
I have a bunch of linkbuttons on a webform where I need to do something based on the ClientID of the linkbutton clicked on. The click event of all the linkbuttons is served by the following codebehind:
protected void MenuItemClick(object sender, EventArgs e)
{
}
How can the clientID of the linkbutton sender be captured in the above code?
Thanks for your help.
Answer : Capture ClientID of a linkbutton sender
First Convert the sender in the Control Type ot os coming from Eg.
Button Btn = (Button)sender;
//Now you can get the client ID as follows:
Btn.ClientID
Hope it helps.
Random Solutions
Asp.Net I need help. I am not passing Date values to my the Conrol Parameters?? in a SqlDatasource using Ajax
need to send and receive one domains email from another domains outlook?
HP 6930p,8440p Hanging at BIOS screen
Terminal Server Printing
Physical installation of the Exchange 2007
ISA 2004 and ForeFront TMG
Java Servlet Parse JSON String
Mysql LIKE vs RLIKE
Create a list of users in Active Directory whose account has been locked out for 90 days
Training Path