Browse by Tags

Related Posts

  • Re: why is MVC restricted to ASP.NET MVC at Microsoft?

    Huh? MVC is just a way to do something. It's not like it's something new. The MVP http://martinfowler.com/eaaDev/ModelViewPresenter.html pattern has had the higher profile for Windows development (In fact that was the pattern of choice for the CAB stuff if memory serves me correct) In WPF and...
    Posted to ASP.NET MVC (Forum) by kevinisom on 02-21-2009, 12:00 AM
    Filed under: MVC, MVVM, silverlight, WPF, pattern
  • Route with url "{*contentUrl}.{format}" is not possible?

    Well, my subject says it all. But I jut wanted to be sure I'm not doing something else wrong. I define a route such as the one in the subject "{*contentUrl}.{format}" because I'd like to trap, well, everything without for example adding a '/wiki/' or '/site/' or '...
    Posted to ASP.NET MVC (Forum) by panik on 07-11-2008, 12:00 AM
    Filed under: MVC, MVC ASP.NET, route, url, pattern
  • Re: Inheritance and View Model

    [quote user="shapper"]Do you think it would be more correct to make these classes inherit PageViewModel? [/quote] It certanly would make sence if you are using thae same superset of properties on multiple controllers. Lookes liek the right thing to do to me
    Posted to ASP.NET MVC (Forum) by sjnaughton on 09-01-2009, 12:00 AM
    Filed under: MVC, pattern, inheritance, ViewModel
  • Re: Show a name from a foregin key

    I would use the ViewModel pattern How to use ViewData and implement ViewModel classes and add the display value for each of the FK columns. from your controller I can see you are populating SelectLists for these for the edit page yes?
    Posted to ASP.NET MVC (Forum) by sjnaughton on 09-02-2009, 12:00 AM
    Filed under: MVC, pattern, ViewModel
  • Re: UpdateModel. Prefix

    Looks correct except for the typo here " public ActionResult Create(Article Form ViewModel article)" should be " public ActionResult Create(ArticleViewModel article)"
    Posted to ASP.NET MVC (Forum) by sjnaughton on 09-01-2009, 12:00 AM
    Filed under: MVC, pattern, inheritance, ViewModel
  • Re: There is no data with key blah

    I think the property in your viewmodel should be more like: public SelectList Countries { get; set; } See http://nerddinnerbook.s3.amazonaws.com/Part6.htm about the ViewModel pattern
    Posted to ASP.NET MVC (Forum) by sjnaughton on 09-01-2009, 12:00 AM
    Filed under: MVC, pattern, ViewModel
Page 1 of 1 (6 items)