473,769 Members | 4,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2.0 Namespaces

In 1.1 I could have two namespaces in the same webgspace. The webspace is on
a remote server. I compile the namespaces separately and check them out on
localhost and when they are checked-out I FTP them to the remote server.

The remote server structure is ...

root
Web.config
/bin
one.dll
two.dll
/one
default.aspx
/two
default.aspx

There would be two modules ...
namespace one
default
namespace two
default

How can I setup 2.0 so that it allows multiple 2.0 namespaces in the same
webspace?

Is it possible to have a 1.1 namespace and a 2.0 namespace in the same
webspace?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Jul 14 '06 #1
2 1247
I got the answer to the first question. I now have two 2.0 applications in
the same webspace. One has a master page. You build them as applications,
move each to its own subdirectory. Move the contents of all /bin
directories to a single /bin directory in the root of the webspace.

Can 1.1 and 2.0 applications exist in the same webspace?

Can there be more than one master page in a webspace (i.e., one per
directory).

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Thom Little" <th**@tlanet.ne twrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
In 1.1 I could have two namespaces in the same webgspace. The webspace is
on a remote server. I compile the namespaces separately and check them
out on localhost and when they are checked-out I FTP them to the remote
server.

The remote server structure is ...

root
Web.config
/bin
one.dll
two.dll
/one
default.aspx
/two
default.aspx

There would be two modules ...
namespace one
default
namespace two
default

How can I setup 2.0 so that it allows multiple 2.0 namespaces in the same
webspace?

Is it possible to have a 1.1 namespace and a 2.0 namespace in the same
webspace?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

Jul 15 '06 #2
re:
Can 1.1 and 2.0 applications exist in the same webspace?
No. I've tested that scenario extensively.

You cannot have 1.1 subwebs, or nested applications, of 2.0 apps.
You cannot have 2.0 subwebs, or nested applications, of 1.1 apps.

re:
Can there be more than one master page in a webspace (i.e., one per directory).
Sure there can be more than one.
Just reference the master page you want in the pages in which you want it to be used.

Be careful not to designate a Master Page to be used by default for all pages in an application
by adding a pages element to your web.config file specifying a common Master Page.

IOW, don't set a "one-and-only" Master Page by inserting something like this in web.cofig:

<configuratio n>
<pages masterPageFile= "~/app.master" />
</configuration>

btw, you can even nest Master Pages, i.e., have a Master Page for a set of Master Pages.

See this article for background info and sample code :

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"Thom Little" <th**@tlanet.ne twrote in message news:es******** ******@TK2MSFTN GP04.phx.gbl...
>I got the answer to the first question. I now have two 2.0 applications in the same webspace. One
has a master page. You build them as applications, move each to its own subdirectory. Move the
contents of all /bin directories to a single /bin directory in the root of the webspace.

Can 1.1 and 2.0 applications exist in the same webspace?

Can there be more than one master page in a webspace (i.e., one per directory).

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--

"Thom Little" <th**@tlanet.ne twrote in message news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>In 1.1 I could have two namespaces in the same webgspace. The webspace is on a remote server. I
compile the namespaces separately and check them out on localhost and when they are checked-out I
FTP them to the remote server.

The remote server structure is ...

root
Web.config
/bin
one.dll
two.dll
/one
default.aspx
/two
default.aspx

There would be two modules ...
namespace one
default
namespace two
default

How can I setup 2.0 so that it allows multiple 2.0 namespaces in the same webspace?

Is it possible to have a 1.1 namespace and a 2.0 namespace in the same webspace?

--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--


Jul 15 '06 #3

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

Similar topics

18
3051
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of a single collections type, I should be proposing a new "namespaces" module instead. Some of my reasons: (1) Namespace is feeling less and less like a collection to me. Even though it's still intended as a data-only structure, the use cases...
24
3529
by: Marcin Vorbrodt | last post by:
Here is an example of my code: //Header file #include <vector> using std::vector; namespace Revelation { // class definitions, etc... // class members are of type std::vector }
2
1592
by: Mike Morse | last post by:
What see sample that show xs:element where the xs namespace = http://www.w3.org/2001/XMLSchema However, I see another example with xsi: where xsi = http://www.w3.org/2001/XMLSchema-instance What's the difference here? Are there right and wrong namespaces? Is there a global list of the ones to use? Does the namespace even need to point at http://www.w3.org.....? Or is this just the accepted way?
3
2322
by: Jim Heavey | last post by:
Trying to get the hang of Namespaces. I have primarly developed in VB and am transitioning to C# and the .Net Environment. I have worked a bit with Java as well in school about a year or so ago. NameSpaces and Java Packages are similar in nature? In the dot net world, you are not able to pick out (import) a particulare "class" within the namespace - just the entire namespace. Is that Right? In Java, I would carve out a place on my...
17
2074
by: clintonG | last post by:
Using 2.0 with Master Pages and a GlobalBaseClass for the content pages. I understand the easy part -- the hierarchical structure of a namespace naming convention -- but the 2.0 IDE does not write a signature for the developer and after getting a good start developing a 2.0 application I thought I should go through the code and start marking classes and with namespaces. I keep getting the following 'missing' error even when using a first...
11
1792
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I understand that you declare your intention to use a namespace within a page through the "Inherits" attribute. I know that using "Inherits" isn't absolutely necessary, it's just recommended so the developer doesn't have to type out the entire...
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9994
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9863
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7408
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.