<a href="/Service/LogOutConfirm?ID=<%=servicelogout.Id%>&&State=<%=servicelogout.State%>">确认</a>
[HttpPost]
public ActionResult LogOutConfirm(int ID,int State)
{
ServiceLogOut servicelogout = servicelogoutRepository.GetModel(ID);
servicelogout.State = State + 1;
servicelogoutRepository.Update(servicelogout);
Message = "确认成功";
return RedirectToAction("LogOutList");
}我这样写超链接="/Service/LogOutConfirm? 这样好像只能调用view 怎么才可以只调用[HttpPost]的action
[HttpPost]
public ActionResult LogOutConfirm(int ID,int State)
{
ServiceLogOut servicelogout = servicelogoutRepository.GetModel(ID);
servicelogout.State = State + 1;
servicelogoutRepository.Update(servicelogout);
Message = "确认成功";
return RedirectToAction("LogOutList");
}我这样写超链接="/Service/LogOutConfirm? 这样好像只能调用view 怎么才可以只调用[HttpPost]的action
解决方案 »
- HyperLinkField
- 从父界面跳到子界面,然后在从子界面点击返回按钮返回父界面,保留以前父界面的查询条件!保留以前父界面的查询
- 截取字符串问题!!
- 使用模版 子页没有样式
- .net 创建IIS虚拟目录怎么解决权限问题
- GridView 的使用问题
- 这样通过sqlparameters传值为什么不行?
- 水晶报表打印问题
- 刚学.net,问一个巨菜的问题:(vs.net2003 asp.net+vb.net) 程序代码到底写在哪?在.aspx,还是在.aspx.vb中?
- Socket客户端向web服务器发送消息
- reporting service报表图表设计。
- 求【MVC+Linq+EF的案例】 如果愿意给我请发我邮箱 【[email protected]】
2、jquery ajax post /Service/LogOutConfirm