ASP.netBeginner
ASP.netBeginner

Reputation: 213

ASP.Net page Life Cycle

I am going through page life cycle.When i referring the following

alt text

there the LoadPostData() method is expressed as (First Try) later (Second Try).What does here try refer to?

Upvotes: 6

Views: 824

Answers (2)

patmortech
patmortech

Reputation: 10219

The page calls this method once BEFORE the page Load event so that all controls on the page or created in the Init event will have their values set from the form post before you start working with them in the Load event code. It calls it a second time because you might have added some dynamic controls during the Load event, and this gives them a chance to get their values set as well.

This article is a good one that outlines the whole page lifecycle, step by step. You'll see a reference to this second try under the "Raised Events" section.

Upvotes: 3

Restuta
Restuta

Reputation: 5903

I think you should refer to the original image from MSDN, it says that it called once for each control alt text

Upvotes: 5

Related Questions