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
Problems installing the AjaxControlTooKit.dll
monitor AIX servers
Memory to sell
IIS FTP service wont restart upon server reboot
Can't open my own attachment in Outlook
Is there anyway to reserve some resources in windows server so that RDC will still work in the event network/cpu is exhausted?
asp.net: My problem is, I am using an ajax extender Calendar to enter BeginDate & EndDate values
BES 5.0.1 and Exchange 2010
Extract Text from Excel Cell
SQL Select Statement