Solved

AssociatedControlId in asp.net

Posted on 2011-09-21
4
548 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now