Link Details

You do understand how this works, don't you? Login and vote now.
Link 93388 thumbnail
User 225256 avatar

By mswatcher
via geekswithblogs.net
Submitted: Jul 08 2008 / 08:52

At some point when creating a web app, you're going to want some reusable UI components. This might be because you want the same visual UI snippet repeated more than once on a single page or it might be because you want to use the same component on multiple pages. In a traditional ASP.NET web app, typically you would use a User Control for this type of thing. In MVC you still have the option of using a User Control but you also have the option of rendering your UI snippet with a ComponentController. So the question is, when do you use which? There are pros and cons to each.
  • 1
  • 1
  • 112
  • 21

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (1)



Voters Against This Link (1)