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
Red5 Losing quality when converted to FLV
Upgrade ESX 4.0U1 to 4.1
Javascript... add onmouseover .... variable not working
OWA Text Box Issue with IE8/Win7
Remote Web Workplace in Server 2008?
xml to array
SSIS and variable issues
MS Access 2007 -- Using Like with Left Join
Re-designing an existing DB - start from paper?
sharepoint foundation 2010 on 32 bit?