Groups > Asp .Net > VS 2005 Web Application Projects > Re: Asp.Net Web Site vs. Asp.Net Web Application




Asp.Net Web Site vs. Asp.Net Web Application

Asp.Net Web Site vs. Asp.Net Web Application
Fri, 22 Feb 2008 14:10:16 +000
Does anyone know what the real difference is between creating a New Project and
choosing Asp.Net Web Application, versus creating a New Web Site and choosing
Asp.Net Web Site.  The only thing I've noticed so far is that if you do an
asp.net web application then you dont have access to App_Code asp.net folder. 
So for a large scale web intranet application which one should I use?  Usually I
do asp.net web site and put my dataccess layer code in the App_Code folder.  

Any ideas???

 

Eric
Post Reply
Re: Asp.Net Web Site vs. Asp.Net Web Application
Fri, 22 Feb 2008 22:12:16 +000
You can still access the App_Code folder; you just need to add a new website to
the project first.  The special folders can then be added.  Either add a new
folder and name it "App_Code" or right-click the project name and
choose "Add Asp.Net folder".

 A web project will allow you to add a website as well as other projects.  One
of the main positives of this is that instead of having to place all code in the
App_Code folder, you can create a separate project which will compile into its
own DLL.  Thus you can build it with your website, but it will be available to
other projects later on without unnecessary rebuilding.  Also, instead of having
to reference another file in a website, you can reference another project within
your web project, which allows the reference to build any changes prior to the
web site rebuilding.  If you make a change in an external project, you don't
have to rebuild it manually, then update the web reference in the website, then
rebuild the web site.

DLLs are better than the App_Code folder.  For example, you will have a single
framework to use when building a Windows Form app and a website app.  Also,
instead of having to recompile an entire website when a change happens to the
data layer, all you have to do is update and rebuild the DLL, then deploy that
latest version to the webserver.
Post Reply
Re: Asp.Net Web Site vs. Asp.Net Web Application
Mon, 25 Feb 2008 13:18:26 +000
Thank you!
Post Reply
Re: Asp.Net Web Site vs. Asp.Net Web Application
Tue, 26 Feb 2008 17:17:42 +000
Hi eseidel!

 You can review "links list" about Web Site Projects or Web
Application Project. Review the post of ScottGu's.


 Saludos,
Post Reply
about | contact