c# - Can't bind to model value -
I can not see how to insert a drop down list for values in the model.
Assume that my strongly typed model is type My code is as follows: Select the tag: I tested some things, should be: fa.domain.text.account .
account has a
PersonId field, I want to pair it in a select drop down list. When the scene is displayed, I want to reflect the value of
@ Model.PersonId .
function object (PersonId , NamePP) {this.CostCentreId = ko.observable (PersonId); This.NamePP = ko.observable (NamePP); }
function object (PersonId, NamePP) {this.PersonId = ko.observable (PersonId); This.NamePP = ko.observable (NamePP); }
Comments
Post a Comment