问题描述
这是我的Ajax电话
This is My Ajax Call
function SelectDocument(DocId) {
$.ajax({
url: $("#DocReCall").val(),
data: { id: DocId },
});
}
这是行动
This is the Action
public ActionResult DocumentReCall(int id)
{
DocumentsViewModel objViewModel = new DocumentsViewModel();
{
// Set Data To View Model
}
return View("Documents", objViewModel);
}
我的尝试:
将文档更改为DocumentReCall但不工作
没有任何更改成功点击DocumentReCall Action但未设置为数据页面
不改变网址
任何建议很多感谢提前
What I have tried:
Change Documents to DocumentReCall But not Working
without any changes Successfully hit DocumentReCall Action but not set to data to page
not changing the url also
Any suggestion many Thank In Advance
推荐答案
这是行动
This is the Action
public ActionResult DocumentReCall(int id)
{
DocumentsViewModel objViewModel = new DocumentsViewModel();
{
// Set Data To View Model
}
return View("Documents", objViewModel);
}
我的尝试:
将文档更改为DocumentReCall但不工作
没有任何更改成功点击DocumentReCall Action但未设置为数据页面
不更改网址
任何建议很多感谢提前
What I have tried:
Change Documents to DocumentReCall But not Working
without any changes Successfully hit DocumentReCall Action but not set to data to page
not changing the url also
Any suggestion many Thank In Advance
这篇关于在ASP MVC中调用ajax请求时查看未设置的模态数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!