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

New Website or New Project?

I would like to develop a new website using VS 2008. Should I choose:

File New Website ... and type http://localhost/MyNewWebsite

or

File New Project ... and set it up that way?

What's the difference? Why would I want to choose one way over the other?

Thanks,
Ron

Dec 20 '07 #1
6 3511
The website will allow compiling each page on the fly, if you opt to put
source on the server. It also compiles each folder and/or page (per rules)
as a different DLL.

The web app project produces a single DLL (ala Visual Studio .NET) and you
cannot easily compile on the fly unless you stick code in the actual page
(not completely sure about that either).

I generally use the web app project type, as I deploy full sites, not
partial. In fact, I see little purpose in deploying single pages for an
Enterprise site (I am sure someone, somewhere has a good reason). You can
set either to go to http://localhost/siteName.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Ronald S. Cook" <rc***@westinis.comwrote in message
news:99**********************************@microsof t.com...
>I would like to develop a new website using VS 2008. Should I choose:

File New Website ... and type http://localhost/MyNewWebsite

or

File New Project ... and set it up that way?

What's the difference? Why would I want to choose one way over the other?

Thanks,
Ron

Dec 20 '07 #2
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:eo**************@TK2MSFTNGP03.phx.gbl...
I generally use the web app project type, as I deploy full sites
Me too. In fact, once you install the Web Deployment Projects, it's all
fairly irrelevant anyway...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Dec 20 '07 #3
its just a preference. web applications are most compatiable with VS 2003
projects (which was the justification for adding the feature) .

the main difference is with web applications, there is a project file and
and visual studio compiles the codebehind files into a dll, then compiles the
aspx pages. with a web site visual studio uses the aspnet_compiler to compile
the aspx page and the codebehind. both support additional project files for
library dlls (via a solution file).

due to the compile methods, web sites need global methods defined in
app_code, and if a page references another one a reference directive is
required, or an interface should be defined in app_code, and a cast done.

the implemention of web applications is a little hacky (vs goes thru hoops
to keep the aspnet_compiler happy), but you will find lots of developers like
it.

-- bruce (sqlwork.com)
"Ronald S. Cook" wrote:
I would like to develop a new website using VS 2008. Should I choose:

File New Website ... and type http://localhost/MyNewWebsite

or

File New Project ... and set it up that way?

What's the difference? Why would I want to choose one way over the other?

Thanks,
Ron
Dec 20 '07 #4
Thanks. Once I create my web application (which will be named
D:\Web\Westinis.RecordPlay.Client), how do I then make it so I can go to
http://localhost/recordplay to see it from my browser?

In IIS when I right-click, I see options "Convert to Application", "Add
Application", and "Add Virtual Directory". Do I want to do any of these?

Thanks again,
Ron

"bruce barker" <br*********@discussions.microsoft.comwrote in message
news:C5**********************************@microsof t.com...
its just a preference. web applications are most compatiable with VS 2003
projects (which was the justification for adding the feature) .

the main difference is with web applications, there is a project file and
and visual studio compiles the codebehind files into a dll, then compiles
the
aspx pages. with a web site visual studio uses the aspnet_compiler to
compile
the aspx page and the codebehind. both support additional project files
for
library dlls (via a solution file).

due to the compile methods, web sites need global methods defined in
app_code, and if a page references another one a reference directive is
required, or an interface should be defined in app_code, and a cast done.

the implemention of web applications is a little hacky (vs goes thru hoops
to keep the aspnet_compiler happy), but you will find lots of developers
like
it.

-- bruce (sqlwork.com)
"Ronald S. Cook" wrote:
>I would like to develop a new website using VS 2008. Should I choose:

File New Website ... and type http://localhost/MyNewWebsite

or

File New Project ... and set it up that way?

What's the difference? Why would I want to choose one way over the
other?

Thanks,
Ron
Dec 20 '07 #5
On Dec 20, 1:23*pm, "Ronald S. Cook" <rc...@westinis.comwrote:
Thanks. *Once I create my web application (which will be named
D:\Web\Westinis.RecordPlay.Client), how do I then make it so I can go tohttp://localhost/recordplayto see it from my browser?

In IIS when I right-click, I see options "Convert to Application", "Add
Application", and "Add Virtual Directory". *Do I want to do any of these?
It has to be an IIS application. If you add an application or virtual
dir it will make a new one, so don't use an "add" option.

I don't understand the path you gave: D:\Web
\Westinis.RecordPlay.Client

It's not an HTTP path, so IIS is not used. If you make an IIS
application, you would run it like:
http://localhost/RecordPlay/PageName.aspx (note that I would not
use periods, I'm fairly sure that would be illegal)

You really need to get a beginners book. It will help a lot.

Eric.
Dec 24 '07 #6
Actually, dotted notation is supported in directories and filenames and is
overlooked as a very valuable naming methodology that lends itself well to
development objectives. I've actually created a file naming grammar
delineated with dotted notation and while I haven't deployed the application
yet doing so is going to help improve search engine optimization as well as
make it a lot easier to use helper classes with the split method to slice
and dice directory and filename data processing.

One of these days I'll blog about it and probably catch hell from all the
narrow minded status quo thinkers but then again maybe not...

--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

"Eric" <en*********@yahoo.comwrote in message
news:74**********************************@j20g2000 hsi.googlegroups.com...
On Dec 20, 1:23 pm, "Ronald S. Cook" <rc...@westinis.comwrote:
Thanks. Once I create my web application (which will be named
D:\Web\Westinis.RecordPlay.Client), how do I then make it so I can go
tohttp://localhost/recordplayto see it from my browser?

In IIS when I right-click, I see options "Convert to Application", "Add
Application", and "Add Virtual Directory". Do I want to do any of these?
It has to be an IIS application. If you add an application or virtual
dir it will make a new one, so don't use an "add" option.

I don't understand the path you gave: D:\Web
\Westinis.RecordPlay.Client

It's not an HTTP path, so IIS is not used. If you make an IIS
application, you would run it like:
http://localhost/RecordPlay/PageName.aspx (note that I would not
use periods, I'm fairly sure that would be illegal)

You really need to get a beginners book. It will help a lot.

Eric.
Dec 27 '07 #7

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

Similar topics

1
by: js | last post by:
Does anyone know how to create a web project with Visual Studio.Net 2003 on IIS6 running on Windows Server 2003? The IIS has the default website disabled, and a new website is created. I have...
2
by: js | last post by:
I am using Visual Studio 2003. An IIS is installed on a separate box with the Remote Debugger server component from VS2003. Initially, I created a new blank project in VS2003 under the IIS's...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
1
by: chaz | last post by:
Hi - What's the difference between a website, a project, and a solution when it comes to pure ASP.NET programming? I have a "solution." I can migrate this to my production web server just by...
2
by: Rob Dob | last post by:
Hi, How do I go about installing another Web Site Project inside my existing VS2005 website project. I currently have both a forum WSP and my main WSP application within the same solution. Both...
13
by: Kobee | last post by:
Hi, I'm having a few issues adapting to new 2.0 "website" project vs. the old 1.1 "web application". One of the major issues I'm having is with the notion of namespaces. Using the old way, I...
1
by: kurt sune | last post by:
I am having trouble publishing a website for RELEASE. 1. web.config: <compilation defaultLanguage="vb" debug="false"> 2. in Configuration manager I set the configuration to Release for the...
2
by: CodeMonkey | last post by:
Hi all I created a web site project using Visual Studio 2005 and then created the Deployment Project to deploy it. I set the virtual directory property on the web application folder to "testsite"....
3
by: moondaddy | last post by:
What's the preferred (best) way to start a website project in VS 2005? I know of 2 ways and each creates a site differently and has different behavior. Open VS 2005 1) from the start page...
5
by: daveh551 | last post by:
What, from a high level point of view, is the difference (in Visual Studio 2005) between Website (accessed with Open Website or Create Website from the StartPage) that is an ASP.NET Website, and a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.