I am loading some data into datatable in a page load event from DB.
Immediately i am setting that datatable into some session.
In some part i am Retreiving it into datatable by taking a new instance of Datatable and performing some filter action to a new datatable instance(But i am not performing any filtering action to datatable which is in Session).
But unfortunately when i check the content of datatable which is in Session, the Filter action has applied for that datatable and some content are missing and i am able to proceed.
Please can any one Suggest how can i get out of this!!!!
Share your code because as you said you are not doing anything in session it should not be changed. and also be sure put datatable on session only when post is not occure.
Vinaybhirask...
Member
93 Points
112 Posts
Datatable Filter in c# with Session
Dec 31, 2011 06:31 AM|LINK
I am loading some data into datatable in a page load event from DB.
Immediately i am setting that datatable into some session.
In some part i am Retreiving it into datatable by taking a new instance of Datatable and performing some filter action to a new datatable instance(But i am not performing any filtering action to datatable which is in Session).
But unfortunately when i check the content of datatable which is in Session, the Filter action has applied for that datatable and some content are missing and i am able to proceed.
Please can any one Suggest how can i get out of this!!!!
Thank in Advance :)
Rajneesh Ver...
All-Star
37134 Points
6810 Posts
Re: Datatable Filter in c# with Session
Dec 31, 2011 06:36 AM|LINK
Share your code because as you said you are not doing anything in session it should not be changed. and also be sure put datatable on session only when post is not occure.
www.rajneeshverma.com
Keep Forums Clean || Use Alert Moderators.
mhbalti
Member
629 Points
264 Posts
Re: Datatable Filter in c# with Session
Jan 02, 2012 12:44 PM|LINK
I think reference types are always hosted in a single location , so whatever changes would be made reflect it.
"A candle loses nothing by lighting another candle."