开发者

.net 4 routing rule help

开发者 https://www.devze.com 2023-01-26 14:09 出处:网络
I have bel开发者_如何学编程ow rule routes.MapPageRoute(\"file\", \"f/{Id}\", \"~/file.aspx\" ); it works just fine if I request site.com/f/11 but when I request site.com/f/11&foo=foo it fails.

I have bel开发者_如何学编程ow rule

routes.MapPageRoute("file",
       "f/{Id}",
       "~/file.aspx"
    );

it works just fine if I request site.com/f/11 but when I request site.com/f/11&foo=foo it fails. is there anyway changing this rule so it would ignore & - = - ?


Try using a URL like this: site.com/f/11?foo=foo&anotherparam=anothervalue

0

精彩评论

暂无评论...
验证码 换一张
取 消