User Control

User Control

am 21.04.2008 19:16:58 von Shapper

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

Re: User Control

am 21.04.2008 19:24:29 von Andy

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".

Re: User Control

am 21.04.2008 22:27:27 von Shapper

On Apr 21, 6:24 pm, Andy 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.