This topic is locked

URL Passed Parameters Lost after Column Sort Usage

11/4/2009 1:12:28 PM
ASPRunnerPro General questions
J
John author

I have a list view that use Request.Querystring to initial determine what is displayed. The event is place under the "List Page: Before SQL Query". There are multiple views configured that basically setup a URL to pass parameters to another view. This allows all of the view to be the same format.
The problem is whenever I select any of the resulting columns to resort the initial parameters passed by the URL are lost and therefore the listing is sorted but the dataset is wrong.
Where would I place the parameters so that the sort still works with the correct dataset.
Pls advise
jsd

admin 11/4/2009

I suggest to save value passed via URL to session variable and use those session variables in your code.
Example:
If Request.QueryString("paramname")<>"" then

session("paramname") = Request.QueryString("paramname")

end if
Then use session("paramname") for filtering.