ASP. NET permission Control for HTML page elements (1)

Source: Internet
Author: User

An HTML page has many elements, such as <DIV> and <P>. These elements constitute HTML pages. In Web development, permission control is used by every system. The permissions of each element on the interface also need to be controlled. For example, a user query interface contains a user query button, a user addition button, and a user deletion button. Different roles must be assigned different permissions. For example, a general user only has the permission to query user buttons; the Administrator has the permission to add and query user buttons. The super administrator queries users, adds users, and deletes users. How can these three users get three different interface forms after logon? At this time, you need to use HTML elements for permission control.

A few steps are required to achieve this:

1. The scan interface obtains the information of the elements to be assigned permissions and stores them in the database.

2. Assign element permissions.

3. Load the interface.

4. Integration.

:

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.