Tham khảo bài thuyết trình 'life cycle and events', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Life Cycle and Events Hà Đồng Hưng Objectives Events Events in the Life Cycle of a Web-app Web Form Events Server Control Events Giới thiệu VMWare Workstation Objectives Events Events in the Life Cycle of a Web-app Web Form Events Server Control Events Giới thiệu VMWare Workstation The Files in a Web Application When you build a Web Forms project: Visual Studio .NET compiles all of the source code into an executable (DLL) and places that file in a /bin directory The appearance portion of your application remains as .aspx and .html files The files you deploy after you build your Web application Giới thiệu VMWare Workstation In Figure 2-11, when a browser requests the start page () of the application, IIS starts the application' s executable () and generates a response. In this case, the response is to display the page defined in . If an event, such as a Button click, occurs on the page, it is sent back to the server, | Life Cycle and Events Hà Đồng Hưng Objectives Events Events in the Life Cycle of a Web-app Web Form Events Server Control Events Giới thiệu VMWare Workstation Objectives Events Events in the Life Cycle of a Web-app Web Form Events Server Control Events Giới thiệu VMWare Workstation The Files in a Web Application When you build a Web Forms project: Visual Studio .NET compiles all of the source code into an executable (DLL) and places that file in a /bin directory The appearance portion of your application remains as .aspx and .html files The files you deploy after you build your Web application Giới thiệu VMWare Workstation In Figure 2-11, when a browser requests the start page () of the application, IIS starts the application' s executable () and generates a response. In this case, the response is to display the page defined in . If an event, such as a Button click, occurs on the page, it is sent back to the server, where it is handled by the application' s DLL. Events in the Life Cycle of a Web Application Life begins The life of a Web application begins when a browser requests the start page of the application. A Web application lives as long as it has active sessions Web forms live for barely a moment. Giới thiệu VMWare Workstation Events in the Life Cycle of a Web Application Life goes on Users interacts to the generated HTML (type in text boxes, select option buttons ) until triggering a post-back event (button click ) Page’s data (view state) is sent back to the server When the server receives the view state it creates a new instance of the Web form, fills in the data from the view state, processes any events that occurred. it posts the resulting HTML back to the browser and destroys the instance of the Web form Giới thiệu VMWare Workstation Events in the Life Cycle of a Web Application Life goes on Giới thiệu VMWare Workstation Events in the Life Cycle of a Web Application .