我使用ASP.Net 3.5 SP1“System.Web.Routing”在我的WebForm应用程序中启用URL路由。现在,我需要的是通过在查询字符串如一些参数:ASP.NET System.Web.Routing和查询字符串参数
http://www.mydomain.com/Search/Books/Computers?sort=author&pagesize=10
这是路线我用:
routes.Add("BooksSearch", new Route
(
"Search/{Category}/{Product}",
new CustomRouteHandler("~/Search.aspx")
));
,因为它被重定向到search.aspx路线是工作正常,但在querystring我找不到额外的参数排序& pagesize。
我仍然无法找到一种方法让它工作..任何指针????? – 2010-03-02 06:32:45