I'm using the MVCContrib grid to output some data. When I sort a column, I get a url which may look like this:
/?Column=ColumnName&Direction=Ascending
Lets say I want to add links to control how many results are being shown. Spontaneously I would write something like this:
Html.ActionLink("View 10", "Index", new { pageSize = 10 })
... which would give me:
/?PageSize=10
But say I already sorted the grid. In that case I want to save the url parameters, making the new url look something like this:
/?Column=ColumnName&Direction=Ascending&PageSize=10
How can accomplish this?