[Alternate] Permissions design, how to use sessions, how MVC uses templates, DropdownList, how to add Bootstrape frameworks, using ASP. NET MVC 4 Bootstrap Layout template (VS2012)

Source: Internet
Author: User

1, the Authority design scheme: http://jingyan.baidu.com/article/9f63fb91ae22bac8410f0e70.html

2. How to use session:

use session in controllernamespaceme. controllers{ Public classLogincontroller:controller {//        //GET:/login/         PublicActionResult Index () {//Set Session             This. httpcontext.session["User"] =123; returnView (); }    }}

3. How MVC uses templates: Right-add-view in/views/shared/, rename to "_xxlayout", tick "create as Partial View", click "Add", and then point Layout to this template in view

4, dropdownlist:http://jingyan.baidu.com/article/11c17a2c694664f446e39df0.html

5, Bootstrap can use 3.0, but query, preferably 1.9 or more, 2.0 version of the following version, (because Bootstrap is based on jquery1.9+ version, The reason for choosing the 2.0 version below is that jquery itself is not supported by more than 2.0 IE9 browsers, so for better compatibility, choose between 1.9-2.0 versions): http://jingyan.baidu.com/article/ 91f5db1bd8c0fb1c7f05e3cd.html

6. Using ASP. 4 Bootstrap Layout Template (VS2012): http://www.it165.net/pro/html/201309/7138.html

[Alternate] Permissions design, how to use sessions, how MVC uses templates, DropdownList, how to add Bootstrape frameworks, using ASP. NET MVC 4 Bootstrap Layout template (VS2012)

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.