Why do we need methods to be static for Post Cache substitution?

 Posted by ArticlesMaint on 9/18/2009 | Category: ASP.NET Interview questions | Views: 3592

ASP.NET should be able to call this method even when there is not an instance of your page class available. When your page is served from the cache, the page object is not created. Therefore, ASP.NET skips the page life cycle when the page is coming from cache, which means it will not create any control objects or raise any control events. If your dynamic content depends on the values of other controls, you will need to use a different technique, because these control objects will not be available to your callback.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response