【发布时间】:2011-02-17 06:43:23
【问题描述】:
我有以下代码,它指出错误如下
错误 1 当前上下文中不存在名称“日期”
错误 2 当前上下文中不存在名称 'person'
怎么了?
$("#test").Click(function () {
var date = $("#DateFrom").val();
var person = Model.SelectedPerson;
$.ajax({
url: '@Url.Action("testEmp","Employee",new {dateFrom = date, selectedPerson= person})',
type: 'GET',
contentType: "application/json; charset=utf-8",
dataType: "html",
success: function (result) {
$('#text).html(result);
},
});
return false;
});
【问题讨论】:
标签: asp.net asp.net-mvc asp.net-mvc-3