ASP.NET Server Control Events - Postback, Cached, Validation event

ASP.NET server control events

ASP.NET web form supports many server controls like Button, TextBox etc. Each control has associated events. There are three types of server control events.

Postback event
Cached event
Validation event

Postback event
This event sends the page to server for processing. This causes the page a round-trip to the server.

Cached event
This event stores page data that gets processed when page is submit to the server by postback event.

Validation event
This event is handled on the page just before the page is posted back to server.

The order of server control events on a Web form is below.

1. First validations Event occurs just before the page is submitted to the server.
2. Postback Event occurs that cause the page to be submitted to the server.
3. Page_Init and Page_Load events are handled.
4. Cached events are handled.
5. Lastly, the event that caused the postback is processed.
What is Fragment Caching in ASP.NET? - ASP.NET
What is Fragment Caching in ASP.NET? - Fragment caching refers to the caching of individual user controls within a Web Form....
What is partial classess in .net?
What is partial classess in .net? - When there is a need to keep the business logic separate from the User Interface....
Explain how to pass a querystring from an .asp page to aspx page. - ASP.NET
Explain how to pass a querystring from an .asp page to aspx page. - This html addresses use QueryString property to pass values between pages....
Post your comment