【发布时间】:2018-06-25 10:09:09
【问题描述】:
我正在开发一个应用程序,并且我开始学习 ASP.NET,所以我是初学者,我正在尝试在视图中添加一个字段。 所以,我有名字、地址、邮政编码、州等,我希望每个医疗提供者都添加他|她的专长。我创建一个表并在两个表之间建立连接。 当我添加特殊性时,它不会出现在视图中。我不知道我在哪里犯了错误。
https://i.imgur.com/YBc5dVZ.jpg
https://i.imgur.com/m0haaIW.jpg
https://i.imgur.com/mAvjNLc.jpg
var id = $(this).attr('data-id');
$.getJSON("/NfDocuments/MedicalInput", { id: id },
function (data) {
$('#medInput').empty();
$.each(data, function () {
// $("#medInput").append("'" + this.Id + "'");
//console.log(this.Id);
var medInput = document.getElementById("medInput");
medInput.value = this.Firstname + ' - ' + this.Zip + ' ' + this.Address1 + ',' + this.City + ', ' + this.State + ' - ' + this.Mobile;
});
});
有什么建议、意见吗?
【问题讨论】:
标签: javascript asp.net model-view-controller