【发布时间】:2013-05-09 07:39:06
【问题描述】:
我正在将我的操作重定向到另一个带有可选参数并将变量传递给控制器的 url
RedirectToAction("action", new { a, c, s,ds});
but my urls loosk like this
http://localhost:8080/contoller/action?a=1&c=2&s=3&ds=4
but when i directly call teh action the url looks like this
http://localhost:8080/contoller/action/1/2/3/4
how can i get the same url with redirect ..any suggestion
【问题讨论】:
标签: asp.net-mvc-3 model-view-controller asp.net-mvc-routing