0
Request.Url.ToString()
它返回的的RenderAction的网址,而不是页面获取当前URL中的RenderAction。有没有办法获得当前网页的网址?
Request.Url.ToString()
它返回的的RenderAction的网址,而不是页面获取当前URL中的RenderAction。有没有办法获得当前网页的网址?
使用ParentActionViewContext
属性:什么
ParentActionViewContext.HttpContext.Request.Url.ToString()
...的财产? - > ControllerContext。所以它是:ControllerContext.ParentActionViewContext.HttpContext.Request.Url.ToString(); – Faust 2011-04-22 09:38:24