Solved

AssociatedControlId in asp.net

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

832 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