作为c#/asp.net/mvc的初学者,我不知道如何从视图中的Html.DropDownList中获取对象。这是我的ViewModel: public List<Something> ListOfSomething {get;set;} // A listSomethings
public Some
我刚刚创建了一个名为Student的类,它有另一个类对象,即Batch as public Batch batch {get;set;}public string BatchName {get;set;}}
我为学生类创建了一个强类型视图,现在我应该如何显示get Batch Object with User with DropdownListFor method helper。