AssociatedControlId in asp.net

Hi

I was reading an article about AssociatedControlId and some queries came into my mind which I want to discuss with you.

1) Is Label the control having the property AssociatedControlId
2) I have read that when we set the associatedcontrolid property then the label is associated with any control so when we click on the label focus goes to the control. Apart from that is there any other use of this property.


Kindly advice

Regards
Karan Gupta
KaranGuptaAsked:
Who is Participating?
 
Pratima PharandeConnect With a Mentor Commented:
1. as per my knowlege Only LAble control have property AssociatedControlId
2.Association means, when the page is executed and if we click on the Label Text the focus will be returned to the associated input control.
this is the use of that property, not any other
0
 
Pratima PharandeCommented:
you are correct

Association means, when the page is executed and if we click on the Label Text the focus will be returned to the associated input control.

refer this for more info

http://codes.codedigest.com/CodeDigest/48-AssociatedControlID-property-in-ASP-Net-Label-Control.aspx
http://haacked.com/archive/2007/02/15/asp.net_tip_-_use_the_label_control_correctly.aspx
0
 
KaranGuptaAuthor Commented:
Hi pratima_mcs


Thanks for the response. I am aware that this will be the behavior. Please check my 2 queries.

Regards
Karan Gupta

0
 
KaranGuptaAuthor Commented:
Hi pratima_mcs

Thanks for the response. I am waiting for other experts to respond. Thanks once again.


Regards
Karan Gupta
0
All Courses

From novice to tech pro — start learning today.