Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <ul> <li>What are the fundamental differences between the two models?</li> </ul> </blockquote> <p>WebForms try to mimic WinForms development by allowing you to reuse lots of pre-made controls, and by faking web application state via the hidden _VIEWSTATE mechanism.</p> <p>MVC is a pattern designed to help you separate your data (Model), business logic (Controller) and presentation (View). It adheres more to the true nature of the web : RESTful URLs, stateless.</p> <blockquote> <ul> <li>In which scenario is one better than the other?</li> </ul> </blockquote> <p>In my opinion, for an intranet application making heavy usage of controls, WebForms can be useful at reducing development time, because thanks to the designer you can create your UI very quickly and let the framework manage the app's state automatically.</p> <p>For any other project, especially a public website, even a small one, I think MVC is the way to go.</p> <blockquote> <ul> <li>What are the gotchas with asp.net MVC (I'm aware of the gotchas with WebForms)</li> </ul> </blockquote> <p>I'd say there is some learning curve to fully understand the MVC pattern and its power. Also, since the framework is still in BETA you can expect the API to experience some minor changes before release.</p> <p>Since JavaScript is not hidden from you in MVC, it would also require some time to learn if you're not familiar with it. jQuery greatly simplifies this though.</p> <blockquote> <ul> <li>For our sample app, what would I gain by using asp.net MVC instead of WebForms?</li> </ul> </blockquote> <p>You'd gain better control over HTML markup and Javascript behavior, a cleaner separation of concerns and some easily testable codebase (even if you don't seem interested in unit testing it).</p> <blockquote> <ul> <li>For our sample app, what would I lose by using asp.net MVC instead of WebForms?</li> </ul> </blockquote> <p>You'd lose the 'drag and drop' quick way of building your pages and the application state management.</p> <blockquote> <ul> <li>Is it feasible to mix and match models within the same small application?</li> </ul> </blockquote> <p>In some ways, yes it seems.</p> <p>I'd recommend watching <a href="http://channel9.msdn.com/pdc2008/PC21/" rel="noreferrer">this talk</a> by Phil Haack, who gives a good overview of the framework and invites Jeff Atwood to talk about how he built StackOverflow with it.</p> <p>He explains how SO is using some WebForms controls for CAPTCHAs which render themselves into the view.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload