User Control

Hello,

I created a web user control, named Navigation, in my web site and
added it to a page using LoadControl:

Protected WithEvents ucNavigation As Navigation =
LoadControl("Navigation.ascx")

I defined it "As Navigation" because I need to access the properties
inside this control.

However Navigation is not recognized.

How can I solve this?

Thanks,

Miguel
Shapper [ Mo, 21 April 2008 19:16 ] [ ID #1946643 ]

Re: User Control

Open your website project and select from Visual Studio's main menu
Project-->Add Reference. The Add Reference dialog will open. Select
the Projects tab and click [Browse]. Locate the project for your
navigation control and select it Click OK. At this point, Visual
Studio should recognize the phrase "As Navigation".
Andy [ Mo, 21 April 2008 19:24 ] [ ID #1946645 ]

Re: User Control

On Apr 21, 6:24 pm, Andy <ane... [at] infotek-consulting.com> wrote:
> Open your website project and select from Visual Studio's main menu
> Project-->Add Reference. The Add Reference dialog will open. Select
> the Projects tab and click [Browse]. Locate the project for your
> navigation control and select it Click OK. At this point, Visual
> Studio should recognize the phrase "As Navigation".

This is not a project it is a web site. I am creating a user control
inside the web site.
Shapper [ Mo, 21 April 2008 22:27 ] [ ID #1946693 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » User Control

Vorheriges Thema: What is a .NET "Module"
Nächstes Thema: UpdatePanel.Update() doesn't work in Firefox