Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
ASP.NET 4 Unleased - p 126
Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 126
Trúc Loan
83
10
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Ủy quyền của tập tin Địa điểm Theo mặc định, các quy tắc cho phép được áp dụng cho tất cả các trang trong một thư mục và tất cả các thư mục con. Tuy nhiên, bạn cũng có tùy chọn sử dụng các yếu tố vị trí với các yếu tố uỷ quyền. | 1224 CHAPTER 27 Using ASf.NET Membership Authorizing Files by Location By default authorization rules are applied to all pages in a folder and all subfolders. However you also have the option of using the location element with the authorization element. The location element enables you to apply a set of authorization rules to a folder or page at a particular path. For example imagine that you want to password-protect one and only one page in a folder. In that case you can use the location element to specify the path of the single page. The web configuration file in Listing 27.13 password-protects a page named Secret.aspx. LISTING 27.13 Web.Config Protecting a File xml version 1.0 configuration system.web authentication mode Forms system.web location path Secret.aspx system.web authorization deny users authorization system.web location configuration You also can use the location element to apply configuration settings to a particular subfolder. For example the web configuration file in Listing 27.14 password-protects a folder named SecretFiles. LISTING 27.14 Web.Config Protecting a Folder xml version 1.0 configuration system.web authentication mode Forms system.web location path SecretFiles system.web From the Library of Wow eBook Configuring Authorization 1225 authorization deny users authorization system.web location configuration Using Authorization with Images and Other File Types Authorization rules are applied only to files mapped into the ASP.NET Framework. The Visual Web Developer web server maps all file types to ASP.NET Framework. Internet Information Server on the other hand maps only particular file types to ASP.NET Framework. If you use Internet Information Services and you add an image to a password-protected folder users aren t blocked from requesting the image. By default authorization rules apply only to ASP.NET file types such as ASP.NET pages. Files such as images Microsoft Word documents and classic ASP pages are ignored by ASP.NET Framework. If
TÀI LIỆU LIÊN QUAN
crossorigin="anonymous">
Đã 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.