c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
.Net

The difference between web applications and web sites

| | ASP-NET

Web application: 
As the name implies, it is like an application, it can be accessed like a website, but once you change it, if you change a piece of logic, you have to recompile it to see the effect of the change when the website is accessed.

In my recent internship, I used a web application to do the design of the control, and then generated the dll file, copying the dll file to the bin below the website, so the role of this web application is only designed as the entire website. A small part, just like an application module.

For the namespace problem, webApplication will automatically put the class under the applicationname namespace, no matter what the file is under, can refer to each other no problem. It is said that some people have deleted the designer and used it as a website to cause some namespace errors. They have not tried it.

By the way, when you generate the dll, please pay attention to the version of .Net FrameWork, which matches the configuration of the website. Otherwise, the error "Unable to load the assembly" appears. 

Web site:

For namespaces, try many ways to find that classes can only be referenced elsewhere in App_Code, but namespaces defined outside of App_Code can't be referenced, and there may be other ways to solve them. . .

App_Code can have units in different languages, but need to be placed in different folders and registered in the webconfig file of the root directory.

 

Nothing special, I will write it next time.