Using ViewModels in ASP.NET MVC 2 - multiple forms

Posted by Rob Ellis on Stack Overflow See other posts from Stack Overflow or by Rob Ellis
Published on 2010-03-31T04:37:43Z Indexed on 2010/03/31 4:43 UTC
Read the original article Hit count: 344

Filed under:
|
|
|
|

I couldn't find any documentation around using multiple forms in an ASP.NET MVC 2 ViewModel approach.

i.e. In the built in application when you select New MVC2 web app, the register page uses a ViewPage which inherits like this:-

Inherits="System.Web.Mvc.ViewPage"

I wanted to use that approach on a page with multiple forms, but that RegisterModel only supported one form.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc2