相关疑难解决方法(0)

ASP.NET MVC:如何使用路由搜索术语.(期间)结束

当我尝试发出我的搜索字词以.(句号)结尾的请求时,我从.Net MVC得到404响应.这是我正在使用的路线:

routes.MapRoute(
                "Json",
                "Remote.mvc/{action}/{searchTerm}/{count}",
                new { controller="Remote", count=10}
            );
Run Code Online (Sandbox Code Playgroud)

搜索.在搜索词内部搜索工作正常,它不能以它结束.有关如何路由此搜索请求的任何想法?

.net model-view-controller asp.net-mvc routing period

12
推荐指数
2
解决办法
5005
查看次数