在MVC中,使用Ajax.ActionLink 路由中如果有?带参数的形式,?和=会被转码成%3f %3d。有时候会导致Url无效,访问不到资源。

解决方案:用Decode来解码。 HttpUtility.UrlDecode(Ajax.ActionLink(xxx))

posted on 2012-12-18 12:02  Mr.Young  阅读(1301)  评论(0编辑  收藏  举报