By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

View State

P: n/a
Hi all,

In my page load i am loading nearly 5 diffferent arrays. each array having
nearly 1000 items. after that i am doing some calculation add some list into
datagrid using that array values. all the values are maintaing on VIEW STATE.
so the page is totaly slow. how to get the array and datagrid values without
maintainng the VIEW STATE. any idea?

Thanks
bala

Nov 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
If you absolutely need to hold on to the information, you can do so
in-memory using sessions.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi all,

In my page load i am loading nearly 5 diffferent arrays. each array having
nearly 1000 items. after that i am doing some calculation add some list into datagrid using that array values. all the values are maintaing on VIEW STATE. so the page is totaly slow. how to get the array and datagrid values without maintainng the VIEW STATE. any idea?

Thanks
bala

Nov 19 '05 #2

P: n/a
Hi Karl,

Thanks for the info.

If there is lot of info (like 5 array, each array contain 1000 items) mean
what is another option?

thanks
Bala

"Karl Seguin" wrote:
If you absolutely need to hold on to the information, you can do so
in-memory using sessions.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi all,

In my page load i am loading nearly 5 diffferent arrays. each array having
nearly 1000 items. after that i am doing some calculation add some list

into
datagrid using that array values. all the values are maintaing on VIEW

STATE.
so the page is totaly slow. how to get the array and datagrid values

without
maintainng the VIEW STATE. any idea?

Thanks
bala


Nov 19 '05 #3

P: n/a
Bala:
You could store them in the database (don't see how that's any better)
,don't store any and re-get it on postback...

I mean there is no magic option...if you wanna hold on to those 5000 items
you'll have to serialize them to the client or hold on to them in the
server...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
Hi Karl,

Thanks for the info.

If there is lot of info (like 5 array, each array contain 1000 items) mean
what is another option?

thanks
Bala

"Karl Seguin" wrote:
If you absolutely need to hold on to the information, you can do so
in-memory using sessions.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
> Hi all,
>
> In my page load i am loading nearly 5 diffferent arrays. each array
> having
> nearly 1000 items. after that i am doing some calculation add some list

into
> datagrid using that array values. all the values are maintaing on VIEW

STATE.
> so the page is totaly slow. how to get the array and datagrid values

without
> maintainng the VIEW STATE. any idea?
>
> Thanks
> bala
>


Nov 19 '05 #4

P: n/a
Thanks karl!

Here i have 2 options. having an array (the view state holding all the array
values and datagrid values. so the page is too slow) or stored all the array
into database and bind the database with datagrid.

which option you would suggest. i need that page should be fast navigate.

thanks
bala

"Karl Seguin" wrote:
Bala:
You could store them in the database (don't see how that's any better)
,don't store any and re-get it on postback...

I mean there is no magic option...if you wanna hold on to those 5000 items
you'll have to serialize them to the client or hold on to them in the
server...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
Hi Karl,

Thanks for the info.

If there is lot of info (like 5 array, each array contain 1000 items) mean
what is another option?

thanks
Bala

"Karl Seguin" wrote:
If you absolutely need to hold on to the information, you can do so
in-memory using sessions.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
> Hi all,
>
> In my page load i am loading nearly 5 diffferent arrays. each array
> having
> nearly 1000 items. after that i am doing some calculation add some list
into
> datagrid using that array values. all the values are maintaing on VIEW
STATE.
> so the page is totaly slow. how to get the array and datagrid values
without
> maintainng the VIEW STATE. any idea?
>
> Thanks
> bala
>


Nov 19 '05 #5

P: n/a
it's hard to say without knowing the exact data and how it's being used.
If you keep hitting the DB for it ,then you still have the overhead of
returning 5000 rows...my guess is that with multiple users this will be the
slowest option and won't scale well ,but that's jsut a guess. Can't you use
Paging or something so you only need a subset of the data at a time?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
Thanks karl!

Here i have 2 options. having an array (the view state holding all the
array
values and datagrid values. so the page is too slow) or stored all the
array
into database and bind the database with datagrid.

which option you would suggest. i need that page should be fast navigate.

thanks
bala

"Karl Seguin" wrote:
Bala:
You could store them in the database (don't see how that's any better)
,don't store any and re-get it on postback...

I mean there is no magic option...if you wanna hold on to those 5000
items
you'll have to serialize them to the client or hold on to them in the
server...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
> Hi Karl,
>
> Thanks for the info.
>
> If there is lot of info (like 5 array, each array contain 1000 items)
> mean
> what is another option?
>
> thanks
> Bala
>
> "Karl Seguin" wrote:
>
>> If you absolutely need to hold on to the information, you can do so
>> in-memory using sessions.
>>
>> Karl
>>
>> --
>> MY ASP.Net tutorials
>> http://www.openmymind.net/ - New and Improved (yes, the popup is
>> annoying)
>> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
>> come!)
>> "Bala" <Ba**@discussions.microsoft.com> wrote in message
>> news:89**********************************@microsof t.com...
>> > Hi all,
>> >
>> > In my page load i am loading nearly 5 diffferent arrays. each array
>> > having
>> > nearly 1000 items. after that i am doing some calculation add some
>> > list
>> into
>> > datagrid using that array values. all the values are maintaing on
>> > VIEW
>> STATE.
>> > so the page is totaly slow. how to get the array and datagrid values
>> without
>> > maintainng the VIEW STATE. any idea?
>> >
>> > Thanks
>> > bala
>> >
>>
>>
>>


Nov 19 '05 #6

P: n/a
Thanks for the info karl. i'll check it out.

"Karl Seguin" wrote:
it's hard to say without knowing the exact data and how it's being used.
If you keep hitting the DB for it ,then you still have the overhead of
returning 5000 rows...my guess is that with multiple users this will be the
slowest option and won't scale well ,but that's jsut a guess. Can't you use
Paging or something so you only need a subset of the data at a time?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
Thanks karl!

Here i have 2 options. having an array (the view state holding all the
array
values and datagrid values. so the page is too slow) or stored all the
array
into database and bind the database with datagrid.

which option you would suggest. i need that page should be fast navigate.

thanks
bala

"Karl Seguin" wrote:
Bala:
You could store them in the database (don't see how that's any better)
,don't store any and re-get it on postback...

I mean there is no magic option...if you wanna hold on to those 5000
items
you'll have to serialize them to the client or hold on to them in the
server...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Bala" <Ba**@discussions.microsoft.com> wrote in message
news:14**********************************@microsof t.com...
> Hi Karl,
>
> Thanks for the info.
>
> If there is lot of info (like 5 array, each array contain 1000 items)
> mean
> what is another option?
>
> thanks
> Bala
>
> "Karl Seguin" wrote:
>
>> If you absolutely need to hold on to the information, you can do so
>> in-memory using sessions.
>>
>> Karl
>>
>> --
>> MY ASP.Net tutorials
>> http://www.openmymind.net/ - New and Improved (yes, the popup is
>> annoying)
>> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
>> come!)
>> "Bala" <Ba**@discussions.microsoft.com> wrote in message
>> news:89**********************************@microsof t.com...
>> > Hi all,
>> >
>> > In my page load i am loading nearly 5 diffferent arrays. each array
>> > having
>> > nearly 1000 items. after that i am doing some calculation add some
>> > list
>> into
>> > datagrid using that array values. all the values are maintaing on
>> > VIEW
>> STATE.
>> > so the page is totaly slow. how to get the array and datagrid values
>> without
>> > maintainng the VIEW STATE. any idea?
>> >
>> > Thanks
>> > bala
>> >
>>
>>
>>


Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.