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
System Config utility opens at login everytime
Problem with host only networking with VMware workstation 7.1
How do I resolve this error "javax.xml.ws.WebServiceEx
ception .... Place the resource correctly in the classpath.?
Expression Blend - Bind Visibility to item in Combo Box.
Repair exchange database on difference server ?
The 5000n printer will only print to the manual feed tray
IIS - Host header Value basic question
Multi-threading and row locking on selects
How do I change default email address in site on sharepoint 2007 moss
Multiple ICA session for the same user