Questions tagged [page-lifecycle]

When a page is requested on the web the server goes through a number of stages before sending back a response. Thus, the page life cycle is runs between request to response on the server.

Main steps in lifecycle are:

  1. Page request
  2. Start
  3. Initialization
  4. Load
  5. Postback event handling (if it is a postback request)
  6. Rendering
  7. Unload

More information: http://msdn.microsoft.com/en-us/library/ms178472.aspx

471 questions
-1
votes
3 answers

List is being emptied in the middle of a method

this has me puzzled - I am no expert on page life cycle but I do not see why this is happening. It may be a simple case of where I declare my list. Here is the code: public partial class feedback : System.Web.UI.Page { List allModules =…
Frank
  • 1,110
  • 2
  • 16
  • 21
-2
votes
2 answers

Would base.OnLoad() cause an infinite loop if called in page_load event?

A member of my team went through a few pages in our ASP.NET web application and changed some OnLoad overrides to page_load events, but he did not remove the call to base.OnLoad(). This: Public void override OnLoad() { //stuff …
CatDadCode
  • 58,507
  • 61
  • 212
  • 318
-2
votes
1 answer

What is the actual meaning of render method in asp.net basic life cycle?

I have read many articles explaining ASP.NET page life cycle but I found really confusing results about render method in ASP.NET page life cycle. I am at a basic level and I just want to know the simplest meaning and working of the render method.
-2
votes
2 answers

Page load in Masterpage is accessed later than page.pageload

I have some labels in the Masterpage as well as in the child pages. the values in all these labels come from a single DB Query.I want to run this query once so that the labels in the Master and Child gets populated. Is there a way for this? This is…
Shomaail
  • 493
  • 9
  • 30
-2
votes
1 answer

Which page event could be used for the following purpose?

I have a page which is having the following Some ddl's for Filter the data A Submit button A export Button A GridView In general We show/hide Export button if submit query results more than zero rows/ no rows NOTE: It is not only the case for one…
Trikaldarshiii
  • 11,174
  • 16
  • 67
  • 95
-3
votes
1 answer

C# create and update static html content

I want to know if this example is possible, and what the performance implication would be? First a question about static content and Page Life cycle. I have a page "Latest_quote". The page is static content that only needs to be updated once an…
user802599
  • 787
  • 2
  • 12
  • 35
1 2 3
31
32