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

Professional in C# and Visual Basic Part 11. 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 1 Application and Page Frameworks Sub Session_Start ByVal sender As Object ByVal e As EventArgs Code that runs when a new session is started End Sub Sub Session_End ByVal sender As Object ByVal e As EventArgs Code that runs when a session ends. Note The Session_End event is raised only when the sessionstate mode is set to InProc in the file. If session mode is set to StateServer or SQLServer the event is not raised. End Sub script Just as you can work with page-level events in your .aspx pages you can work with overall application events from the file. In addition to the events listed in this code example the following list details some of the events you can structure inside this file Application_Start Called when the application receives its very first request. It is an ideal spot in your application to assign any application-level variables or state that must be maintained across all users. Session_Start Similar to the Application_Start event except that this event is fired when an individual user accesses the application for the first time. For instance the Application_Start event fires once when the first request comes in which gets the application going but the Ses-sion_Start is invoked for each end user who requests something from the application for the first time. Application_BeginRequest Although it not listed in the preceding template provided by Visual Studio 2008 the Application_BeginRequest event is triggered before each and every request that comes its way. This means that when a request comes into the server before this request is processed the Application_BeginRequest is triggered and dealt with before any processing of the request occurs. Application_AuthenticateRequest Triggered for each request and enables you to set up custom authentications for a request. Application_Error Triggered when an error is thrown anywhere in the application by any user of the application. This is an ideal spot to provide application-wide

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.