Professional Documents
Culture Documents
What is ASP.NET? ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server. ASP.NET is a Microsoft Technology ASP stands for Active Server Pages ASP.NET is a program that runs inside IIS IIS (Internet Information Services) is Microsoft's Internet server IIS comes as a free component with Windows servers IIS is also a part of Windows 2000 and XP Professional
Introduction
What is an ASP.NET File? An ASP.NET file is just the same as an HTML file An ASP.NET file can contain HTML, XML, and scripts Scripts in an ASP.NET file are executed on the server An ASP.NET file has the file extension ".aspx How Does ASP.NET Work? When a browser requests an HTML file, the server returns the file When a browser requests an ASP.NET file, IIS passes the request to the ASP.NET engine on the server The ASP.NET engine reads the file, line by line, and executes the scripts in the file Finally, the ASP.NET file is returned to the browser as plain HTML
Business layer is the class where we write the functions which get the data from the application layer and passes through the data access layer. Data layer is also the class which gets the data from the business layer and sends it to the database or gets the data from the database and sends it to the business layer.
Property layer is the sub layer of the business layer in which we make the properties to sent or get the values from the application layer. These properties help to sustain the value in a object so that we can get these values till the object destroy.
PreInit :-
Life-Cycle Events
Raised after the start stage is complete and before the initialization stage begins.
Init :Raised after all controls have been initialized and any skin settings have been applied. The Init event of individual controls occurs before the Init event of the page. Use this event to read or initialize control properties.
PreLoad : Raised after the page loads view state for itself and all controls, and after it processes postback data that is included with the Request instance.
Load :-
The Page object calls the OnLoad method on the Page object, and then recursively does the same for each child control until the page and all controls are loaded. The Load event of individual controls occurs after the Load event of the page. Use the OnLoad event method to set properties in controls and to establish database connections.
Control events:Use these events to handle specific control events, such as a Button control's Click event or a TextBox control's TextChanged event.
LoadComplete : Raised at the end of the event-handling stage. Use this event for tasks that require that all other controls on the page be loaded.
The following figure illustrates how the server controls on an ASP.NET page is processed by the server