PC Review


Reply
Thread Tools Rate Thread

Dataset in viewstate

 
 
EDom
Guest
Posts: n/a
 
      9th Aug 2005
Hi,
I am storing dataset in viewstate between postbacks. But now my datasets are
getting bigger and is effecting the speed of the pages and making them
bigger. I can store it in session also but then if I open the same page in
another window then it will overwrite the session of the previous page. Is
there any better logic by which I can have datasets stored in memory
seperately for each page I open and also get cleared as the page is closed.
Regards,
Vineet


 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      9th Aug 2005
Vineet,

If you only read into the dataset, consider reloading it from the database
on every postback.

If you can't do this, you can always keep several instances of dataset in
the session. Save every instance in a separate session variable and persist
the variable name or index in the viewstate.

Eliyahu

"EDom" <(E-Mail Removed)> wrote in message
news:Og8%(E-Mail Removed)...
> Hi,
> I am storing dataset in viewstate between postbacks. But now my datasets

are
> getting bigger and is effecting the speed of the pages and making them
> bigger. I can store it in session also but then if I open the same page in
> another window then it will overwrite the session of the previous page. Is
> there any better logic by which I can have datasets stored in memory
> seperately for each page I open and also get cleared as the page is

closed.
> Regards,
> Vineet
>
>



 
Reply With Quote
 
EDom
Guest
Posts: n/a
 
      17th Aug 2005
Hi,

When can I clear this data from session variables. As it will keep
growing...

Regards,

"Eliyahu Goldin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Vineet,
>
> If you only read into the dataset, consider reloading it from the database
> on every postback.
>
> If you can't do this, you can always keep several instances of dataset in
> the session. Save every instance in a separate session variable and

persist
> the variable name or index in the viewstate.
>
> Eliyahu
>
> "EDom" <(E-Mail Removed)> wrote in message
> news:Og8%(E-Mail Removed)...
> > Hi,
> > I am storing dataset in viewstate between postbacks. But now my datasets

> are
> > getting bigger and is effecting the speed of the pages and making them
> > bigger. I can store it in session also but then if I open the same page

in
> > another window then it will overwrite the session of the previous page.

Is
> > there any better logic by which I can have datasets stored in memory
> > seperately for each page I open and also get cleared as the page is

> closed.
> > Regards,
> > Vineet
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 Microsoft ASP .NET 6 1st Sep 2006 06:59 PM
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
Loading usercontrols, viewstate problem, slighly different from all others "viewstate uc problems" please help... ujjc001 Microsoft ASP .NET 0 27th Jul 2005 02:52 PM
Adding a Dataset to the viewstate Craig G Microsoft ASP .NET 1 2nd Mar 2005 02:47 PM
Corrupted ViewState (Yes, another issue concerning viewstate) Ben Rush Microsoft ASP .NET 2 5th Dec 2003 04:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.