Re: User control visibility

Brad Wilson <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
Re-expose the control (or the Text property) through your own public
property.

public string FooText
{
    get { return myFooTextBox.Text; }
}

On 1/11/07, Mark Aurit <[email protected]> wrote:
>
> I have a textbox control in a user control.  In 1.1 I was able to access
> its .text property from the calling page by changing the protection
> level of the control in the .ascx from protected to public.
> How does one do the same thing in 2.0, since they are not able (at least
> Im not able!) to touch the protection level?
> Thanks, Mark
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.