I am newbie to ASP.net MVC, currently I am building small application which displays data from database in grid like table (list). I had implement it search textbox using query string to the controller. The problem is I want to sort the grid data from the search result using its header in the table then the querystring should be appended with the currently queryString in the url. E.g if I search for title="alkf"
http://localhost/search?Title=alkf. When I want to sort the grid using the price, I want the url to be
http://localhost/search?Title=alkf&sort=price like that I try to do using this snipp but It did't work out.
<table>
<tr>
<th> <%:Html.ActionLink("Title","Search",new {Title=ClienQueryString[0],sort="Title"}
)%>
</th>
<th><%: Html.ActionLink("Price","Search",new {Title=ClienQueryString[0],sort="Price"})%>
</th>
</tr>
<tr>
...
</table>
so can anyone suggest me a better way to handle this.