asp.net-mvc-viewmodel Questions

3

Solved

I'm debating with myself whats the point in creating ViewModel classes in a project which uses Entity Framework? I currently have a project which uses EntityFramework. My solution is structured ba...

2

Solved

Cannot get my brain around how to implement knockout for the following ASP.NET MVC 4 nested view model : public class MyProfile { public string Name { get; set; } public IList<VM1> List1 ...

1

Solved

Having these ASP.NET MVC view models: public class User { public string Name { get; set; } public LabeledEmail LabeledEmail { get; set; } } public class LabeledEmail { public IList<Contac...

1

Solved

With the following ASP.NET models public class User { public string Name { get; set; } public LEmail LEmail { get; set; } } public class LEmail { public IList<CLabel> Labels; public I...

2

Solved

I am new to MVC ASP.NET. Although this might have been solved in the past but I still can't get a complete Solution to my problem. Problem : I have two tables Video Columns are : VideoID, Fli...
Gaylegayleen asked 26/2, 2013 at 12:35

2

I have an editor template for DropDownLists that is marked with an attribute like this: [AttributeUsage(AttributeTargets.Property)] public class DropDownListAttribute : UIHintAttribute { public s...

2

Solved

Is there a way to handle this without custom Model Binding? public class MyViewModel { public string UserId { get; set; } public IJob Job { get; set; } } public interface IJob { public long Id...
Cammiecammy asked 22/12, 2012 at 13:31

2

Solved

I'm new to .Net development, and now are following NerdDinner tutorial. Just wondering if any of you would be able to tell me What is the differences between ViewData and ViewModel (all I kn...
Diandiana asked 3/3, 2011 at 6:1

3

Solved

I've just started to get into using ViewModels. Can you guys check out this code to see if I'm following best practice? Is there anything out of the ordinary? Would you do the validation differentl...
Corroborant asked 18/2, 2012 at 2:25

7

Solved

I currently have the following code in the HomeController of my MVC project: public class HomeController : Controller { public ActionResult Index() { MyDataContext dc = new MyDataContext(); I...
Rachelrachele asked 30/3, 2011 at 15:20

1

Solved

I am trying to implement IPagedList with a viewmodel, my main view declaration is @model PagedList.PagedList<CustomerOrders.WebUI.Models.SiteAdminListViewModel> Then i have a Display Templ...
Irremissible asked 8/9, 2011 at 11:38

© 2022 - 2024 — McMap. All rights reserved.