473,395 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ASP.NET 2 Namespaces & Shared/Static Members

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

Nov 19 '05 #1
3 982
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

Nov 19 '05 #2
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/arc...6/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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 21 Jul 2005 16:27:39 -0700, "Chris Welch" <gu******@chriswelch.com>
wrote:
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


Nov 19 '05 #3
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.

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:fc********************************@4ax.com...
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/arc...6/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.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 21 Jul 2005 16:27:39 -0700, "Chris Welch" <gu******@chriswelch.com>
wrote:
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

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
I think, a class template with a static vector member: ---------------------------- template <class C> struct Shared { unsigned int count; C data; }; template <class C>
11
by: dee | last post by:
OleDbCommand class like many .NET classes has the following description in its help file: "Thread Safety Any public static (Shared in Visual Basic) members of this type are safe for...
15
by: Rob Nicholson | last post by:
A consequence of the ASP.NET architecture on IIS has just hit home with a big thud. It's to do with shared variables. Consider a module like this: Public Module Functions Public GlobalName As...
16
by: chameleon | last post by:
I have 2 classes with exactly the same members (all static except dtor/ctor). Classes have different implementantion in only one static member function and first class has one more member...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.