【发布时间】:2013-05-08 21:14:09
【问题描述】:
假设我有这样的动作:
[HttpPost]
public ActionResult(MyObject obj)
{
//Do a SQL insert that gets an Id for obj
//Do some long-running operation in the background - don't wait for it to finish
//Return a report of the object
return View(obj);
}
有没有办法在 POST 之后修改 URL,使其在末尾显示 ?id=1234?执行 GET 有一个等效的操作(就像用户共享页面一样),我只想显示报告。
【问题讨论】:
标签: c# asp.net .net asp.net-mvc asp.net-mvc-3