It's all well and good that i can add [page] to the url. but I WHAT my urls to look like /Products/List?page=x but i also want the url /Products/List to go to page 1 by default.
Obviously i could check RouteData and if "page" isn't found set it to 1, but this means i can't parameterise my methods with
page, and i'll have to do that for each controller which does paging.
tgmdbm
Contributor
4392 Points
883 Posts
ASPInsiders
MVP
Re: Extra defaults bug
Dec 24, 2007 09:47 PM|LINK
Sorry, Not really.
It's all well and good that i can add [page] to the url. but I WHAT my urls to look like /Products/List?page=x but i also want the url /Products/List to go to page 1 by default.
Obviously i could check RouteData and if "page" isn't found set it to 1, but this means i can't parameterise my methods with page, and i'll have to do that for each controller which does paging.