I wonder if any of you .NET experts could offer some guidance with this ?
I have an asp.net page which uses a session state variable to hold some data. I have a datagrid to which I have bound the results of a database query. The DataView that is bound to the datagrid is saved in the session state so that I can offer column sorting, paging etc without re-querying the database each time.
It works great (at last - custom paging took some doing
but thats another story)
My question is this - how do I clear this particular session variable when the user navigates to another page on the same site/application (which wont need the DataView, and even if it did, it would be the wrong data)
Any help with this would be very much appreciated,
Nathan
I have an asp.net page which uses a session state variable to hold some data. I have a datagrid to which I have bound the results of a database query. The DataView that is bound to the datagrid is saved in the session state so that I can offer column sorting, paging etc without re-querying the database each time.
It works great (at last - custom paging took some doing
but thats another story)My question is this - how do I clear this particular session variable when the user navigates to another page on the same site/application (which wont need the DataView, and even if it did, it would be the wrong data)
Any help with this would be very much appreciated,
Nathan


Comment