Newbies learn Web Development ASP 5.0 1.0

Source: Internet
Author: User

At the beginning of the study I would like to emphasize that "Microsoft to cross-platform development" march, no matter how far he can go, this is the only way for Microsoft.

First, the learning process:

Create an ASP. Application project-Project structure-structural analysis.

1. Create an ASP. Application project

Open VS2015 Select File--New--project--template--c#--web. such as:

    

Enter your new project name and save location here-OK to display in slices.

    

Select the WEB application point here to finalize the project creation. Create a good list of project files such as:

    

To the completion of this project creation.

2. Project structure:

The files we see in the Web page are in the "WWWROOT" folder.

The ASP. NET reference now has a new pronoun "DNX", see: http://www.cnblogs.com/shanyou/p/4589930.html Thank you Zhang Shanyu teacher.

(Whatever his age, he can guide us to learn is called our teacher).

A "lazy NPM, BOWER" is more than ASP. This "lazy" can be very important. It is the derivative of Linux/unix elder brother, now as can be big. The full name of 1:NPM is node package manager[1], a Nodejs pack management and distribution tool that has become the unofficial standard for publishing node modules (packages). If you're familiar with Ruby's Gem,python pypi, setuptools,php's pear, then you know what NPM is all about. Nodejs itself provides the basic modules, but the development of the actual application process only rely on these basic modules will still need more work. Fortunately, the Nodejs Library and framework provide us with the help we have to reduce our workload. But hundreds of libraries or frameworks are cumbersome to manage, and with NPM, you can quickly find packages to use for specific services, download, install, and manage installed packages. 2:bower is a package management tool launched by Twitter, based on Nodejs's modular thinking, to spread functionality across modules, to connect modules and modules, and to manage this connection between modules through BOWER. See: http://blog.fens.me/nodejs-bower-intro/. 3:node.js is a platform built on the chrome JavaScript runtime to easily build responsive, easy-to-scale Web applications. node. js is lightweight and efficient with event-driven, non-blocking I/O models and is ideal for data-intensive, real-time applications running on distributed devices. 3.1:node is a JavaScript run environment (runtime). It actually encapsulates the Google V8 engine. The V8 engine executes JavaScript very fast and performs very well. Node optimizes some of the special use cases, providing an alternative API that allows V8 to run better in a non-browser environment.

The control class of the project is stored within the controllers, which is equivalent to one's brain. Our class files are stored inside.

Two temporary database classes are stored in the migrations. The temporary database on Microsoft is not covered by this discussion.

Models is the control class for mobile phones or computer platforms.

The user registration submission information class is stored within the services. One thing to note here is the task. A task is a pure tread of a word class that can have a return value, with a pure end.

Views within the Save is our "ASPX" page file, here is a new name cshtml. The syntax has changed, and the previous <%%> became the @{of the present. The previous page face on the CS file also lost. Here's a note: The cshtml file that starts with "_" is a template file. What is a template file I don't have to say more, the Earth people know.

Bower.json is a bower configuration file.

The Config.json is used to set the environment variables for the project.

Gulpfile.js JavaScript Total files.

Hosting.ini Server configuration file: Server is used to specify which servers listen to receive requests and ultimately respond to requests, server.urls to specify the address (URL, port number) to listen on

Package.json Package configuration file that describes the language (program) package used within the project.

Project.json Project general configuration file, equivalent to Web. config.

The starting class for the Startup.cs project.

3, structure description.

    

Newbies learn Web Development ASP 5.0 1.0

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.