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 / November 2009

Tip: Looking for answers? Try searching our database.

web site vs web application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JohnE - 30 Nov 2009 03:48 GMT
In VS2008 you can select from either a project (webapp) or web site (web site).

Currently, I am given the dubious task of converting a few Access
applications (SQL2005 backend dbs) to asp.net.  But, when I go to use VS2008
I have the 2 different items to select from.  I see tutorials and they've
used both and do not elaborate on why they selected one over the other.  
Several books make no comment about it either.

I would like to throw this out to the group to see what most developers in
asp.net use?  What is the criteria to consider when selecting one over the
other?    

Thanks.
John
Alexey Smirnov - 30 Nov 2009 10:27 GMT
> In VS2008 you can select from either a project (webapp) or web site (web site).
>
[quoted text clipped - 10 lines]
> Thanks.
> John

See "Comparing Web Site Projects and Web Application Projects" on MSDN
http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx#wapp_topic5

and Google
http://www.google.com/search?q=asp.net+website+vs+web+application
Gregory A. Beamer - 30 Nov 2009 15:37 GMT
> I would like to throw this out to the group to see what most
> developers in asp.net use?  What is the criteria to consider when
> selecting one over the other?    

The web site template does a single compile per page. This makes it more
flexible if you have to update a single page, but this, in and of
itself, is a potential maintenance nightmare, as you are not deploying
full websites. There is a checkbox when compiling a web application that
allows a similar deployment strategy (keep same names option, when used
with the compile each page as a separate assembly option), although this
is not intuitive like the web site.

The web application model is used more and more, as it allows
precompilation (although not pre-jitting) of the site. As we move into
.NET 4.0, which also has better deployment options, the web application
will truly rule the day.

Alexy has some links you can look at for more information, although I
don't see all of the gotchas included. If you use Profile, for example,
you can end up with some pain if you use a web application, as the
system gets confused at times (this is not true if you use a custom
Profile provider, but the default, out of the box, often fails - NOTE:
If you are not using the default Profile bits, you are fine here).

Peace and Grace,

Signature

Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

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

|      Think outside the box!             |
*******************************************

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



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