Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Adding a Dataset to the viewstate

Reply
Thread Tools

Adding a Dataset to the viewstate

 
 
Craig G
Guest
Posts: n/a
 
      03-02-2005
is it a wise idea??

the dataset would only be one table (2 columns), but it might have upto 1800
records

other possibilites would be to write an XML file on the server but there
might be upto 100 users using system which would mean the possibility of
upto 100 XML files

or just hit the database and repopulate the dataset each time

what would be the best option? its an intranet based system

Cheers,
Craig



 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      03-02-2005
In this scenario I'd generally favor keeping the object in the Cache.

Using XML files can be very messy - it's easy to have a file locked
when you want to read or delete it.

As for Viewstate, you could always enable the Trace for a page and
take a look at how many bytes you are adding to the response. Since it
is an intranet app you'll have a higher threshold of pain, but watch
the byte count. It's hard to say or yay or nay without doing some
measurements first.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 2 Mar 2005 14:30:33 -0000, "Craig G"
<craig.gamble@y_arrasoftware.com> wrote:

>is it a wise idea??
>
>the dataset would only be one table (2 columns), but it might have upto 1800
>records
>
>other possibilites would be to write an XML file on the server but there
>might be upto 100 users using system which would mean the possibility of
>upto 100 XML files
>
>or just hit the database and repopulate the dataset each time
>
>what would be the best option? its an intranet based system
>
>Cheers,
>Craig
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Problems with ViewState: "function 'ViewState.get_Item' evaluated and returned null" Steph ASP .Net 2 05-11-2011 02:35 PM
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 ASP .Net 6 09-01-2006 05:59 PM
Loading usercontrols, viewstate problem, slighly different from all others "viewstate uc problems" please help... ujjc001 ASP .Net 0 07-27-2005 01:52 PM
Viewstate errors... how do I get viewstate working? mark ASP .Net Building Controls 0 02-20-2004 02:17 PM
Corrupted ViewState (Yes, another issue concerning viewstate) Ben Rush ASP .Net 2 12-05-2003 04:17 PM



Advertisments