Asp.net+mvc+easyui+sqlite simple User System learning Journey (i)

Source: Internet
Author: User
Tags sqlite

Open Project below

1. Open vs2010-file-new project

2. Create an empty solution first:

Choose a different project type-visual Studio Solution-Blank solution (default. NET Framework 4), project name and location customization, here set to Usermanager and D drive under my project path below

3. Add a project to a blank solution, right-click-Add-New project

4. Select the visual c#-web-asp.net MVC 2 Web application

The new web name prefix here is the solution, plus the following. The way the web is named, the location is below the blank solution we just created, click OK, do not create the unit test project, select No, OK.

The Usermanager.web project has been created, the HomeController.cs is opened by default, and the corresponding view is in views-home-index.aspx. This is also the display of the running project, the default route is set in Global.asax, if you want to adjust the Web portal, you need to modify the code here (will be modified later).

5. In order to create a three-tier classic software architecture, in addition to the Usermanager.web (presentation layer, the MVC architecture is divided into/models/views/controller) also need to add usermanager.business (business logic Layer) for the solution Usermanager.data (data access Layer) Usermanager.model (data entity layer) Usermanager.common (Universal layer)

As with creating Usermanager.web, the project type selects the Visual c#-windows-Class library and creates additional projects.

Usermanager Solution now has 5 items to note in the black bold item, we should choose Usermanager.web, point in Usermanager.web right click, select Set as Startup Project.

At this point, the entire model has come out, you can try to run, see the effect, the next section to start using Easyui to create the user interface.

6. Direct run display results as follows

Asp.net+mvc+easyui+sqlite simple User System learning Journey (i)

Related Article

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.