Solved

AssociatedControlId in asp.net

Posted on 2011-09-21
4
577 Views
Last Modified: 2012-08-13
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
0
Comment
Question by:KaranGupta
[X]
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
4 Comments
 
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

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
 

Author Comment

by:KaranGupta
ID: 36578478
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
 
LVL 39

Accepted Solution

by:
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
0
 

Author Comment

by:KaranGupta
ID: 36578502
Hi pratima_mcs

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


Regards
Karan Gupta
0

Featured Post

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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