Click here to Skip to main content
15,917,061 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get button id inside a user control from a web page
Posted
Updated 27-Nov-13 4:33am
v3
Comments
What have you tried?

1 solution

Refer the method- Re: How can i access controls in a user control.?[^].

Example shows how to access one TextBox. Try the same method to find the Button.
 
Share this answer
 
Comments
Manish (Mack) 27-Nov-13 10:51am    
you can check the Client ID of the Button
If you want to access the control in Client Side using JavaScript/jQuery, then you will use ClientID. But while trying to access it from code behind, you have to approach the way I suggested.

As OP has tagged the question with C#, so most probably he/she is trying to access the control at Server Side.
Manish (Mack) 27-Nov-13 11:06am    
Thanks for describing the same...!
Most Welcome. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900