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 / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Namespace Question - Asp.Net 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matthias - 22 Feb 2008 10:42 GMT
hi there,

i've currently moved from asp.net 1.1 to 2.0 and i don't get the new
namespace thing:

all pages, controls etc. in my web application are not wrapped into a
any namespace as it was in 1.1. now here is my problem. i've got quite a
view classes located in my App_Code directory. i'd like to put them into
namespaces for better organization (Localization, BOL, DAL, etc.). if i
do so, adding a using directive to my default.aspx.cs and hoping i could
use any of the classes wouldn't work.

how do i cope with this? any reading available? any hints?

thanks in advance, matthias
Scott Roberts - 22 Feb 2008 15:48 GMT
> hi there,
>
[quoted text clipped - 11 lines]
>
> thanks in advance, matthias

I don't really remember 1.1, but in 2.0 you can definitely wrap your classes
inside different namespaces and still access them from your code-behind.
What makes you think that you cannot?
Matthias - 22 Feb 2008 18:35 GMT
hey scott,

thanks for your reply. i've found the problem already: i wrapped my
classes in the App_Code directory into various namespaces and made them
all "internal", because i thought it anyway gets all compiled into the
same assembly (as it was in 1.1). changing their scope to public solved
the problem.

thanks again for reading my post and taking the time to answer. i
appreciate this.

matthias

Scott Roberts schrieb:

>> hi there,
>>
[quoted text clipped - 15 lines]
> classes inside different namespaces and still access them from your
> code-behind. What makes you think that you cannot?

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.