vb.net - DropDownListFor using List of Class -
I can not seem to have my HTML DropDownListFor () to work properly with my structures.
CategoriesEditViewModel cihLists see edited Page error I get But in the cihWaiver class there is clearly an item for 'mafia'. I have not done MVC content in some time, so perhaps I am doing all this wrong. Answer: To change my cihWaiver class is very simple: Sugarcane has anyone explained to me why the keyword
Public Class CategoriesEditViewModel Public Property Categories cihCategoryOrgDef as public property category lists public properties as cihLists (cihCategoryOrgDef ) As new = cihLists () public property SelectedItem string publicly subid (CatID as GUID) SelectedItem = codId.ToString lists.loadClubWaivers (ZenCommon.CurrentOrgId) End Sub Ending Class
private orgWaiverList public sub-loadClub Waivers (orgId as GUID) (list of cihWaiver) as' list (cihWaiver) cihWaiver
@ Html.DropDownListFor (function (m) m.SelectedItem, New selectList (Model.lists.organizationClubWaivers, "waiverId", "waiverText", Model.lists.organizationClubWaivers ))
'library. There is no property with name "mafia" in Sehwaver.
property is so important
Comments
Post a Comment