Page Life Cycle in 4 MVC RRS feed

  • Question

  • Hello,

    Can someone explain me the page life cycle of 4 MVC ? Where are the eventhandler ? how to deal with IsPostBack? (i understand the model and controller side ) but wondering we are going back to the way Classic Asp used to be written !!

    Is there any good article, or if someone can explain will be great help !

    - Arindam



    Thursday, February 17, 2011 4:47 AM

All replies

  • You don't, PostBack "is evil". There are no event handlers. I would recommend going to the MVC site and following some of the good tutorials there.
    Thursday, February 17, 2011 4:15 PM
  • Hi Aridam,

    I suggest you try the ASP.NET forums:


    Esther Fan | Visual Studio, Content Lead | If a post answers your question, please click "Mark As Answer" on that post and mark as Helpful. Thanks!
    Thursday, February 17, 2011 6:09 PM
  • I think you need to take a step back and start reading some introductory book on MVC mate.

    Part of the idea is that there's no page life cycle.

    And yes, it's an immature toolset.  I also get that deja vu feeling.

    Thursday, February 17, 2011 9:20 PM
  • Oh Andy you're pushing my buttons on this one ;)

    If you love web forms look away now...

    IMO web forms was, is, and will always be a terrible framework for the web - if you want to write VB6 WinForms then do so, but stay away from the web! MVC is going back to a more classic asp view rendering but it's a quantum leap forward (even though that phrase doesn't make any sense). Embrace MVC (or OpenRasta, whatever) and shun web forms at every opportunity.

    TBH Web Forms is fine for smaller web sites and if you really know what you're doing it's ok for bigger sites but MVC is sooo much better. Not that I've formed an opinion on this or anything ;)
    Thursday, February 17, 2011 9:44 PM
  • I don't really have very strong feelings either way.

    I'm not convinced MVC is better <shrug>

    On the other hand, silverlight is definitely a better way to develop.

    Everyone wants LoB apps to have the windows app style interactivity.

    Then they insist they must run in a browser. 

    Friday, February 18, 2011 12:02 PM
  • Yes the whole HTML 5 debate has thrown all that back in the air. IMO The web browser is one of the biggest weights holding application development back. A web application does not need a browser. A web application shouldn't be difficult to deploy or update. Oh well, that horse has certainly bolted, is over the hill and cantering along the open plains.
    Friday, February 18, 2011 12:18 PM
  • Thanks Everyone for your thought !

    I agree with pkr2000 that MVC2 will be doing good, but at the same time i feel silverlight is better.  Actually i was just trying to understand what happen to page life cycle in MVC2 , while looking for something .. i found the below like, which has a video..good to start with .. ...i think Scott has done a good job . take a look! 

    Saturday, February 19, 2011 8:25 PM