AssociatedControlId in

Posted on 2011-09-21
Last Modified: 2012-08-13

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

Karan Gupta
Question by:KaranGupta
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 39

Expert Comment

by:Pratima Pharande
ID: 36578472
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

Author Comment

ID: 36578478
Hi pratima_mcs

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

Karan Gupta

LVL 39

Accepted Solution

Pratima Pharande earned 500 total points
ID: 36578494
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

Author Comment

ID: 36578502
Hi pratima_mcs

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

Karan Gupta

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question