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
VB.Net 2010: ResourceManager.GetObject fails with silent exception on x64
What does src="#" mean when used in a bgsound attribute and is it needed?
sumif with 2 conditions
threads in mfc
Help to decipher/reset BIOS settings on a Gigabyte MB!!!
Outlook Send/Recieve Progress Dialogue Box
IPSEC access into ASA via second Internet connection
dateDiff - combining a date selection and a time selection
task for mac developer
Error installing sql express upgrade