Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

User Control

0 views
Skip to first unread message

shapper

unread,
Apr 21, 2008, 1:16:58 PM4/21/08
to
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

Andy

unread,
Apr 21, 2008, 1:24:29 PM4/21/08
to
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".

shapper

unread,
Apr 21, 2008, 4:27:27 PM4/21/08
to

This is not a project it is a web site. I am creating a user control
inside the web site.

0 new messages