ASP.NET 2 Namespaces & Shared/Static Members

C

Chris Welch

I'm developing my company's new site in Visual Studio 2005 (Beta 2) and
I'm wondering if anyone knows if there is a way to set the default
namespace of the Web project. I can't find it in the Web Properties, or
in the Web.Config.

Also, I'm trying to access static/shared methods in Page1.aspx from
Page2.aspx, however Visual Studio doesn't seem to catch on that the
class Page1 even exists. Anyone have any ideas?

Thanks,
Chris
 
C

Chris Welch

I've rebooted VS2005 and the problem seemed to go away. It must just be
a bug in Beta 2.

I'm still having trouble finding the setting for the default namespace
for the project, though, if anyone knows how to do that...

Thanks,
Chris
 
S

Scott Allen

Hi chris:

I tend not to think of web apps in 2005 as not being "projects"
anymore. Mostly because each web form can now compile into a seperate
assembly. I have some details here:

http://odetocode.com/Blogs/scott/archive/2005/06/30/1889.aspx

There is no way to set a default namespace - I know I've seen that
issue come up on Ladybug and MS has said they'll consider it for a
future release.
 
T

Teemu Keiski

Yes, and when upgrading from projects made with previous versions (where
default ns's are in use), default namespaces will be added explicitly to the
code files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top