TAILIEUCHUNG - Professional ASP.NET 3.5 in C# and Visual Basic Part 77

Professional in C# and Visual Basic Part 77. Building on the revolutionary release, adds several key new developer features including AJAX, LINQ, and a new CSS designer in Visual Web Developer 2008. The dramatic reduction in code that developers realized from the more than 50 new server controls in now allows developers the time to make their applications more interactive with AJAX, to work with data in their preferred language with LINQ, and to build visually attractive and consistent standards-based sites with CSS. . | Chapter 14 Site Navigation Listing 14-34 Locking down the page in the configuration location path authorization allow roles Admin deny users authorization location configuration Now because the page is accessible only to the users who are in the Admin role the next step is to allow users to login to the application. The application demo accomplishes this task by creating a page that contains a Login server control as well as a TreeView control bound to a SiteMapDataSource control. This simple page is presented in Listing 14-35. Listing 14-35 The page @ Page Language VB html xmlns http 1999 xhtml head runat server title Main Page title head body form id form1 runat server div asp Login ID Login1 runat server asp Login br asp TreeView ID TreeView1 runat server DataSourceID SiteMapDataSource1 ShowLines True asp TreeView br asp SiteMapDataSource ID SiteMapDataSource1 runat server div form body html With the page in place another change is made to the file that was originally presented in Listing 14-1. For this example you add a siteMapNode element that works with the new . This node is presented here siteMapNode title Administration description The Administrators page url roles Admin After all items are in place in your application the next step is to enable security trimming for the site navigation system. 717 Chapter 14 Site Navigation Enabling Security Trimming By default security trimming is disabled. Even if you start applying values to the roles attribute for any siteMapNode element in your file it does not work. To enable security trimming you must fine-tune the provider declaration for the site navigation system. To make the necessary changes to the XmlSiteMapProvider you need to make these changes high up in the configuration chain such as to the file or .

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.