Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / April 2006

Tip: Looking for answers? Try searching our database.

problem with namespaces in VB.Net (2.0)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim_Mac - 13 Apr 2006 14:44 GMT
hi,
i have an aspx page in a web project, which loads a user control
dynamically.  (by the
way i don't have any problems using namespaces in C# web projects, this
seems to be just a VB thing).

the user control is in a sub-directory, and i cannot refer to the type
of the control to access its properties and methods.  when i move the
control to the root directory then it works fine.  this happens without
any use of namespaces.

i tried adding a namespace to the page and usercontrol but it
still doesn't work, i cannot even import the user control namespace
from within the code behind of the page.  all the classes are marked
public, and i have tried all sorts of combinations with the same
namespaces, different namespace for the subfolder etc. but it always
ends up the same.  when i recompile the project, it says "Type 'xyz' is
not defined".

any ideas why this is so unreasonably difficult?
thanks
tim
Guffa - 20 Apr 2006 18:28 GMT
I had the same problem yesterday, and finally found the namespace.

Look in the ASP namespace.
Tim_Mac - 20 Apr 2006 18:45 GMT
hi,
thanks for the reply.  my problem was that i didn't know you had to
manually refer to any other page or user control you wanted to
reference.
<%@ Add reference etc...

i must say i'm not a big fan of the default web deployment in .net 2.0.
i usually end up using the web deployment add-on.  

thanks
tim

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.