Whats Better ASP website or website application

Posted on 2011-10-18
Last Modified: 2012-05-12
I have not long started with and started my site as a website. Is there an advantage to change to application? please give pros and cons of each.

I want to be able to update without the site going down. At the moment I precomile it to a local folder then ftp the parts I need to the server. If i do a ftp publish it takes ages and deletes all files. I can see if i use application you have an option not to delete all.

I have tried to convert my site to an application which was a nightmare and still have a few errors. I just dont want to go any further untill i know which way to go.
Question by:taz8020
    LVL 9

    Accepted Solution


    Scenarios in which Web application projects are the preferred choice include the following:

    You want to be able to edit code without stopping a debugging session.

    You want to run unit tests on code that is in the class files that are associated with ASP.NET pages.

    You want to refer to the classes that are associated with pages and user controls from standalone classes.

    You want to establish project dependencies between multiple Web projects.

    You want the compiler to create a single assembly for the entire site.

    You want control over the assembly name and version number that is generated for the site.

    You want to use MSBuild or Team Build to compile the project. For example, you might want to add pre-build and post-build steps.

    You want to avoid putting source code on a production server.

    You want to use the automated deployment tools that are available in Visual Studio 2010.

    Scenarios in which Web site projects are the preferred choice include the following:

    You want to include both C# and Visual Basic code in a single Web project. (By default, a Web application is compiled based on language settings in the project file. Exceptions can be made, but it is relatively difficult.)

    You want to open the production site in Visual Studio and update it in real time by using FTP.

    You do not want to have to explicitly compile the project in order to deploy it.

    If you do precompile the site, you want the compiler to create multiple assemblies for the site, which can include one assembly per page or user control, or one or more assemblies per folder.

    You want to be able to update individual files in production by just copying new versions to the production server, or by editing the files directly on the production server.

    If you precompile the site, you want to be able to update individual ASP.NET Web pages (.aspx files) without having to recompile the entire Web site.

    You like to keep your source code on the production server because it can serve as an additional backup copy.

    LVL 3

    Author Comment

    Hi thanks dexterrajesh, so you can get the same result with both? and being as I want to update pages without stoping the site the web site option might be best for me.

    Can I ask which is faster at sending to server and which you prefer.
    LVL 9

    Expert Comment

    there should be no big notable difference when it comes to performance...

    I would prefer website for the case you have...

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now