Posts

Showing posts from October, 2018

Asp.net page life cycle

Image
Asp.NET Page Lifecycle Page request: - this thing happens before the life cycle starts. When a page is requested by the user ASP.NET compile that page. Start- Here the page properties like request and response are set.it also decide the Request type of the page. Initialization: - here all control’s property will be set. And Master page will be Initialize here. Load: - During this phase. If the Page Request is PostBack. Control properties will be loaded with information. Post back event handling: - Here First thing Event Handler will be called. If(Page request == ispostback). After that, the validation method of all validation will be called. Rendering: - Before this View, State is saved for all pages and controls. During the rendering stage, the page will call the render method. Unload: - at this stage, the request page has been fully rendered and is ready to terminate. Then all properties will unload

State Management is asp.Net Web Form

Image
State Management:                HTTP is stateless Protocol, or we can say that our website is based on Stateless Protocol. Stateless means. Here State is Not in Managing Form. Basically, it means if we have a form which has some Fields like textboxes and radio buttons and other things. If we sent the values from one page to another. The data will be lost. §   State is not manageable. §   Values are not manageable. That’s why we say it is stateless so managing the state is Necessary required. We had seen that Some Time Values are gated to another page. Because of State Management. v   There are two type of State Management 1.       Client Side State Management 2.       Server Side State Management v 1.Client Side State Management o   Hidden Field. o   View State. o   Cookies o   Control State. ...

Asp.Net Validation

Image
Validation Controls in Asp.Net ·       ASP.NET Validation controls validate the user input Data. For restriction on Useless and redundant data. There are basically 6 Types of Validation Control in asp.net. 1.    Require Field Validation. 2.    Range Validator. 3.    Compare Validator 4.    Regular expression validator. 5.    Custom validator. 6.    Validation summary. 1.    Required Field Validator: - This Validator ensures that the required field must require some value. Basically, that field does not fill empty. 2.    Range Validator: - This Validator ensures that input field must have values between some specific ranges. 3.    Compare Validator: - This Validator ensures that two different fields must contain the same values. 4.    Regular expression validator: - This Validator ensures that the field restricts with specific ...