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

Professional in C# and Visual Basic Part 133. 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 27 Modules and Handlers The generic format of the httpModules section is httpModules add name modulename type assemblyname httpModules If you are deploying your application to an IIS 7 server you must also add the module configuration to the configuration section. modules add name AppendMessage type App_code modules If you have created your HttpModule in the App_Code directory of an web site you might wonder how you know what the assemblyname value should be considering now dynamically compiles this code at runtime. The solution is to use the text App_Code as the assembly name. This tells that your module is located in the dynamically created assembly. You can also create HttpModules as a separate class library in which case you simply use the assembly name of the library. After you have added this section to your file simply view one of the Web pages from your project in the browser. When you view the page in the browser you should not notice any difference. But if you view the source of the page notice the comment you added at the bottom of the HTML. Figure 27-3 shows what you should see when you view the page source. Figure 27-3 1282 Chapter 27 Modules and Handlers URL Rewriting Another interesting use of an HttpModule is to perform URL rewriting. URL rewriting is a technique that allows you to intercept the HTTP request and change the path that was requested to an alternative one. This can be very useful for creating pseudo Web addresses that simplify a URL for the user. For example the MSDN Library is well known for its extremely long and cryptic URL paths such as http library url library en-us cpref html The problem with this URL is that it is not easy to remember and even if you do somehow remember it it is very difficult to type into the browser s Address field. URL rewriting allows you to

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.