Top "Asp.net-mvc-viewmodel" questions

View model is a class, that represents data model used in specific view.

How to use ViewModels in ASP.NET MVC?

I just started learning about ViewModels in ASP.NET MVC. So, I thought of implementing a sample example as below: …

c# asp.net-mvc viewmodel asp.net-mvc-viewmodel
Client form validation not working with modal dialog in MVC

I am changing a create form to become a modal dialog and jquery Unobtrusive validation stops working and don't know …

asp.net-mvc data-annotations unobtrusive-validation asp.net-mvc-viewmodel
Should a service layer return view models for an MVC application?

Say you have an ASP.NET MVC project and are using a service layer, such as in this contact manager …

asp.net-mvc service-layer asp.net-mvc-viewmodel
ViewBag vs Model, in MVC.NET

This is more of a generic architectural question: I'm trying to decide if it's ok for my programmers to use "…

asp.net-mvc viewbag asp.net-mvc-viewmodel
MVC View ViewModel HttpPost return value is always NULL

I'm passing a ViewModel back from my View to the Controller via a form HttpPost. However, the values returned are …

asp.net-mvc asp.net-mvc-4 razor asp.net-mvc-viewmodel
ViewModels in MVC / MVVM / Separation of layers- best practices?

I'm fairly new to the using ViewModels and I wonder, is it acceptable for a ViewModel to contain instances of …

c# asp.net-mvc mvvm asp.net-mvc-viewmodel
Return two lists to the view c# mvc

I have two lists that i want to return to the view, 'added' and 'removed'. However currently i can only …

c# asp.net-mvc linq asp.net-mvc-viewmodel
Asp.Net MVC - Model Binding to Model or ViewModel

I have a controller, which returns a view passing in a view model, which has properties required for display of …

asp.net-mvc model-binding asp.net-mvc-viewmodel
asp mvc list product details in view using View Model

I am trying to list single product details in a view. The product specification changes dynamically because specifications are added …

asp.net-mvc asp.net-mvc-4 viewmodel asp.net-mvc-viewmodel
Show multiple models in a single view using ViewModel in Razor MVC3 (with only Details in view)

My task is to show multiple models into a single view.I've created a ViewModel for my requirement but I'm …

c# asp.net-mvc-3 razor asp.net-mvc-viewmodel