2 回答
TA贡献1998条经验 获得超6个赞
试试这个,
var abc = {
'modelfieldname':excelFileData,
'modelfieldname1':data1,
'modelfieldname2':data2,
};
$.ajax({
type: "POST",
enctype: "multipart/form-data",
url: "/VCModule/UploadVCSchedule",
data: abc,
dataType: "json",
processData: false,
contentType: false,
async: false,
success: function (data) {
},
error: function (response) {
}
});
}
TA贡献1828条经验 获得超6个赞
她的解决方案是有效的。
var awardfamilyid = 105;
//in Ajax method :-
excelFileData.append(awardfamilyid, JSON.stringify(awardfamilyid));
//In Action Method :-
int AwardFamilyID = Convert.ToInt32(Request.Form.Keys[0]);
- 2 回答
- 0 关注
- 101 浏览
添加回答
举报