TAILIEUCHUNG - Beginning asp net 2.0 with c phần 3

Bằng cách chia các mục tiêu này, bạn có thể thực hiện cập nhật với nhau mà không ảnh hưởng khác. Ví dụ, khi một cầu thủ mới được thêm vào nhóm, bạn nhập các thông tin về các cầu thủ vào cơ sở dữ liệu của trang web, | Chapter 4 3. Click the Manage link for the Administrators group and then search for the Administrator user account using the search tools shown in Figure 4-24. The easiest way to find the Administrator account is to search for all accounts beginning with the letter A so type a in the text box and click Find User. Add the Administrator account to the Administrators role by checking the User Is In Role check box. Figure 4-24 4. Add the remaining user accounts to the Users role in the same way. 5. Click the Security tab to return to the main Security section of the Administration Tool. Then click the Manage access rules link to return to managing the access rules for the site. In the same interface as you used in the earlier example for managing access rules see Figure 4-13 remove the access rules for the individual user accounts and instead grant access to the site to both the Administrators and Users groups. As you delete rules you ll be prompted as shown in Figure 4-25. 6. Add the new permissions on a role-by-role basis with the interface shown in Figure 4-26. After you have added the rules you should see the list of rules shown in Figure 4-27. 122 Membership and Identity Figure 4-25 Figure 4-26 123 Chapter 4 Figure 4-27 7. If you run the application again now you should be able to log in as any of the user accounts and access the site as before. If you change the permissions for one of the roles all members of that role will be affected hence you could block access to all non-administrative users if you wanted. How It Works All of the changes in this example were made via the magic Web Site Administration interface which simplifies the process of adding role definitions and access rules. If you were to do this by hand as you will see in just a moment you would have to manipulate the contents of the Roles table in the database that was shown earlier to include two role definitions and then add users to those roles by changing the UsersInRoles table by

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.