Site hosted by Angelfire.com: Build your free website today!

 

ASP.NET Programmers Could Determine Control Properties With the Help Of OnLoad event



In the period of head to head rivalry, you have to serve people anything unique so as to drag their consideration. That is precisely why for creating unique as well as competent website pages increasingly more developers are by using ASP.NET development course of action. ASP.NET features the programmers together with amount of competent methods plus attributes which will support them to develop fascinating and also well-functioning web page. Let's try to fully grasp the levels of the creation of ASP.NET website page.


Prior to the webpage creation life cycle begins, ASP.NET ascertains several things for instance if the cached type of the page can be sent with out running the webpage as well as if the web site needs to be parsed and put together. Right after then, page attributes just like Request as well as Response are established by ASP.NET. Apart from this, IsPostBack property and UICulture property is also confirmed in this start stage. These events are determined by using PreInit. It proves to be a tremendous help in deciding Profile property values. Right after these stages are generally attained, ASP.NET developers can begin with ASP.NET development process.



The page life cycle of ASP.NET page begins together with the stage initialization. In this point, ASP.NET developer can initialize default values of statically declared regulations in the .aspx file. After initializing these controls, developers should be able to put it on for life long. In this stage control property is initialized with the aid of Init.



The view state of the webpage is loaded by ASP.NET Web Development framework after the very first period is accomplished successfully. Viewstate, a gathering area of name/value pairs furthermore saves data such as world wide web requests. To be able to re-establish viewstate, ASP.NET programmer can use the strategy LoadViewState().


The following phase is exactly about affirmation. In this stage, ASP.NET developers can set up the price of IsValid property to true. In this stage a number of occasions are put to use. PreLoad occurs soon after the web page is loaded and postback data which is inlayed in Request event is then handled. Page object calls OnLoad method in the Load event. Each child control is also called by it the equivalent technique. OnLoad event additionally allows ASP.NET coders in setting control attributes and setting up database connections.


Page rendering is the following point of ASP.NET development procedure. View state for the page and also all different regulations for the page are usually stored in this phase. By making use of OutputStream class, a Response property of the page gets Render method for every single control which is called by the page. PreRender event occurs ahead of output is actually rendered. PreRenderCompletes is actually an event which makes certain that rendering is finished and also announces the closing of this period. Yet another essential event, SaveStateComplete assists coders to preserve the state of regulation and also different modifications. He can easily furthermore conserve information regarding modification, control state and view state by using this event.


Unloading is the last occasion of ASP.NET page life cycle. This event is required if the page object should be ignored. Database associations, files, graphical objects and also various other imperative resources could be launched in this phase. Once unloading is completed, even web browsers act in response to HTTP and the site visitors can after that comprehend the page.