I have several query string parameters in my Index controller such as filter, pageindex, sortExpression and groupName. The SortableHeaderFor used for sorting generates a link which contains only the sortExpression parameter, for example, the razor code
I want to include the groupName that contains a value that I need to retain during sorting and will be passed also as parameter together with the sortExpression in the query string which will result to, something like this:
Hi,
I have several query string parameters in my Index controller such as filter, pageindex, sortExpression and groupName. The SortableHeaderFor used for sorting generates a link which contains only the sortExpression parameter, for example, the razor code
I want to include the groupName that contains a value that I need to retain during sorting and will be passed also as parameter together with the sortExpression in the query string which will result to, something like this:
http://localhost:60755/InventoryManagement/Index?sortExpression=-ItemDesc&groupName=Supplies
Would it be possible?
Thank you for your guidance.