473,387 Members | 1,528 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,387 software developers and data experts.

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 1232
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.netwrote in message
news:%2****************@TK2MSFTNGP04.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:

<configuration>
<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.netwrote in message news:es**************@TK2MSFTNGP04.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.netwrote in message news:%2****************@TK2MSFTNGP04.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
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...
24
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
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 ...
3
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....
17
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...
11
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.