What is the difference between webapplication and website? Which one should I choose?

Source: Internet
Author: User
Document directory
  •  
51aspx is recommended Webapplication

This article will briefly introduce the differences between website and webapplicationd in vs2005, hoping to help you.
Advantages of the webapplication programming model:
● The website Compilation speed is fast and the incremental compilation mode is used. This part will be incrementally compiled only after the file is modified.
● Generated assembly
Website: generate a random Assembly name. You must use the plug-in webdeployment to generate a single assembly webapplication: You can specify a website project to generate a single assembly because it is an independent assembly, therefore, like other projects, you can specify the application Assembly name, version, output location, and other information.
● The website can be split into multiple projects for convenient management
● A file can be excluded from the project and source code management.
● Support for vsts team build to facilitate daily building
● More powerful code check functions, and check policies are controlled by source code
● You can perform prescribed processing before and after compilation
● Strong resource class support for app_globalresources
● Directly upgrade a large system built using vs2003
Advantages of the website programming model:
● Dynamically compile the page to see the effect immediately without compiling the entire site (main advantages)
● Same as above, which can make the error part irrelevant to the used part
● An assembly can be generated on each page.
● A directory can be processed as a web application, and files can be directly copied and published without project files
● You can also compile the page into a set of programs.
Mutual conversion between the two programming models:
Vs2005 SP1 has built-in Conversion Program, which can be easily converted from website to webapplication
You only need to copy the file and right-click to execute "convert to Web application.
No dedicated reverse Conversion Tool is found, but after comparison, it is also very easy to convert.
*. Designer. CS
*. Aspx
*. Ascx
*. Master
Delete all *. Designer. CS
Replace codebehind = "filelist. aspx. cs" in the *. aspx, *. ascx, and *. Master page files with codefile = "filelist. aspx. cs" in batches"
In short, large websites are more suitable for webapplication projects, while small websites are more suitable for website projects.

 

 

The following is a discussion of webapplication and website.

Q: zhuangjunx (Xingchen)
When we use vs. net2005 to develop a website, do we use webapplication or website ???
--------------------------------------------------------------------------------
Respondent: nowitzki41 (derek, MVP)
Website
--------------------------------------------------------------------------------
Respondent: zhuangjunx (Xingchen)
How does one generate a DLL file for the entire website when publishing a website through website?
--------------------------------------------------------------------------------
Respondent: xrascal)
Web Application
--------------------------------------------------------------------------------
Respondent: xiaoyue34561 ()
Where is the Web application in vs2005 ??
--------------------------------------------------------------------------------
Respondent: xiaoyue34561 ()
My website
--------------------------------------------------------------------------------
Respondent: gnhao (He Fei)
How does one generate a DLL file for the entire website when publishing a website through website?
There is nothing to keep in the source code ......
You may create a web control library. Let each class inherit to the page and then modify the inheritance settings on the ASPX page.
--------------------------------------------------------------------------------
Respondent: gnhao (He Fei)
Page is also a control
--------------------------------------------------------------------------------
Respondent: flyin2006)
How does one generate a DLL file for the entire website when publishing a website through website?
-------------
Generate a solution-> Generate a website
--------------------------------------------------------------------------------
Answer: chy710 (understand you)
When publishing a website using website, the entire website can generate a DLL file. For more information, see articles in chy710.cnblogs.com.
Only vs2005 SP1 has Web Application
--------------------------------------------------------------------------------
Respondent: xrascal)
After the patch is installed, the Web application is available.

--------------------------------------------------------------------------------
Respondent: zhuangjunx (Xingchen)
When a website is published in website mode, the entire website generates a DLL file. Is it necessary to use the webdeployment patch?
--------------------------------------------------------------------------------
Respondent: webdiyer
When a website is published in website mode, the entire website generates a DLL file. Is it necessary to use the webdeployment patch?

Yes, or you can install SP1
51aspx.com
--------------------------------------------------------------------------------
Respondent: vengair (Wayne)
When VS 2005 is used for website development, there are no project files in the website project.
Vs 2003 has a project file, that is, webapplication.
--------------------------------------------------------------------------------
Respondent: livant)
Which of the two is better, by the way?
What is the difference?
--------------------------------------------------------------------------------
Respondent: sp1234 (51aspx.com)
I tried the project method for a day or two and thought the directory method was clean and easy to manage.
If you have any documents that you do not want to compile, put them in the app_code directory. At the time of release, I chose "do not allow modification of pre-compiled content" or "do not select a fixed name ". In one of my projects, the code of this project is compiled into more than 40 4 mb dll files in total and compiled into one file, so it is too prone to problems during the upload.
In addition, we recommend a comfortable website upload software: netload. Do not upload data using a common FTP client. That is too stupid.
--------------------------------------------------------------------------------
Respondent: sp1234 (encountering adware. cpush rogue)
If you have any documents you do not want to compile --> if you have any documents you do not want to publish
I used to manage documents in project mode because I didn't know how to save documents that I didn't want to publish in directory mode.
Compiling a large DLL is a taboo for websites. It is troublesome and dangerous to upload, load, and update files.
In terms of management, I used to encounter the need to manually (blindly) Modify engineering files, for example, conflicts between the project's web location. It is really reassuring to remove engineering files, but never have encountered such problems.
--------------------------------------------------------------------------------
Respondent: zhuangjunx (Xingchen)
Is it better to use website ???
--------------------------------------------------------------------------------
Respondent: wzhh598 (watchouwa)
In vs2005, only "project" and "website" are available only when a website is generated.
--------------------------------------------------------------------------------
Respondent: zhuangjunx (Xingchen)
When the webapplication method is released, it can replace the modified files instead of all. Therefore, you do not need to upload all the modified files. This is not more convenient. Can all websites be replaced?
--------------------------------------------------------------------------------
Respondent: zhuangjunx (Xingchen)
When the webapplication method is released, it can replace the modified files instead of all. Therefore, you do not need to upload all the modified files. This is not more convenient. Can all websites be replaced?
--------------------------------------------------------------------------------
Respondent: Adow (Adow)
I have been using website. It is convenient to update it. just replace and modify the file.
--------------------------------------------------------------------------------
Respondent: chjlcn
Website. Just intuition. No tests.
--------------------------------------------------------------------------------
Respondent: Seyon)
Generate a solution-> Publish a website

--------------------------------------------------------------------------------
Respondent: luckbird (luckbird)
Web Application
--------------------------------------------------------------------------------
Respondent: oberserver ()
It is better to use web application for large websites.

 

ZZ from: http://bbs.51aspx.com/showtopic-744.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.