我已经在我的控制,我想过去的2个参数如下:MVC Url.Action有两个参数
url = Url.Action("ViewReq ", "ProgramT ", new System.Web.Routing.RouteValueDictionary(new { id = spid pgid = pid }), "http", Request.Url.Host);
当我认为这一点,它显示为:
http://localhost/Masa/ProgramT/ViewReq/20036?pgid=00001
我喜欢它显示为:
http://localhost/Masa/ProgramT/ViewReq?id=20036&pgid=00001
如何修改UrlAction显示此WA ÿ?
@Darvin季米特洛夫 - 如何修改样品中Url.Action我有这么上方它显示为http:// localhost/Masa/ProgramT/ViewReq?id = 20036&pgid = 00001,因为这会给我绝对路径。谢谢 – 2011-12-13 22:17:45