For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > December 2005 > Child Control









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Child Control
isacc manit

2005-12-18, 3:57 am

How to access child control from a panel Control or (LoginView etc..) in code
For example Changing text from a lable that is in a panel Control

--
VB.NET
Elton W

2005-12-18, 7:02 pm

You can use Control.FindControl(stringID) to get reference of the Label.

HTH

Elton Wang


"isacc manit" wrote:

> How to access child control from a panel Control or (LoginView etc..) in code
> For example Changing text from a lable that is in a panel Control
>
> --
> VB.NET

clintonG

2005-12-18, 9:58 pm

The FindControl method can be used but is late bound and has been described
as "brute force." The preferred way is the use of a public property which is
early bound, self-documents the code and has other benefits.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/



"Elton W" <EltonW@discussions.microsoft.com> wrote in message
news:B4F76F5E-8655-4D19-86E6-B19FB799947F@microsoft.com...[color=darkred]
> You can use Control.FindControl(stringID) to get reference of the Label.
>
> HTH
>
> Elton Wang
>
>
> "isacc manit" wrote:
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com