Last post Sep 20, 2018 01:46 PM by mgebhard
Sep 20, 2018 01:12 PM|qsoft_developer|LINK
I have a web form app that from different forms you can open a web page with a GridView.
In order to run the GridView, I pass the connection string and connection type and query via Sessions. Of course this is a very sensitive data.
The problem is that a user can open the GridView page simultaneously, from different pages and then the sessions values keep changing.
When I want to sort one of the previous grids which are already open, I get an error cause the parameters are now changed.
Any idea on how to solve this?
Sep 20, 2018 01:46 PM|mgebhard|LINK
Use a Dictionary and store the dictionary in session where the key is unique to the form or page that originated the data.
Or create a complex type to hold the data and use the page name as the Session key.