Explain Prerender the Objects?

 Posted by deccansoft on 10/30/2010 | Category: ASP.NET Interview questions | Views: 1874

The point at which the objects are prerendered is the last time changes to the objects can be saved or persisted to viewstate. This makes the PreRender step a good place to make final modifications, such as changing properties of controls or changing Control Tree structure, without having to worry about ASP.NET making changes to objects based off of database calls or viewstate updates. After the PreRender phase those changes to objects are locked in and can no longer be saved to the page viewstate. The PreRender step can be overridden using OnPreRender.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response