Solved

AssociatedControlId in asp.net

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

12 Experts available now in Live!

Get 1:1 Help Now