Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

New Website or New Project?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ronald S. Cook - 20 Dec 2007 16:48 GMT
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
Cowboy (Gregory A. Beamer) - 20 Dec 2007 17:31 GMT
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.

Signature

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

*************************************************

| Think outside the box!

*************************************************
>I would like to develop a new website using VS 2008.  Should I choose:
>
[quoted text clipped - 8 lines]
> Thanks,
> Ron
Mark Rae [MVP] - 20 Dec 2007 17:35 GMT
> 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...

Signature

Mark Rae
ASP.NET MVP
http://www.markrae.net

bruce barker - 20 Dec 2007 17:47 GMT
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)

> I would like to develop a new website using VS 2008.  Should I choose:
>
[quoted text clipped - 8 lines]
> Thanks,
> Ron
Ronald S. Cook - 20 Dec 2007 18:23 GMT
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

> its just a preference. web applications are most compatiable with VS 2003
> projects (which was the justification for adding the feature) .
[quoted text clipped - 32 lines]
>> Thanks,
>> Ron
Eric - 24 Dec 2007 17:38 GMT
> 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.
clintonG - 27 Dec 2007 16:07 GMT
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...

Signature

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

> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.