473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

View State

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
6 1818
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bren | last post by:
I am developing a web based app. in .net, with C# as the code behind.the problem I am having is with view state for a page. the page is capturing an event fired in an object. the event changes the...
0
by: Bren | last post by:
I am developing a web based app. in .net, with C# as the code behind.the problem I am having is with view state for a page. the page is capturing an event fired in an object. the event changes the...
2
by: Brad | last post by:
I have an intranet app that has just started sporadically getting the following error "The viewstate is invalid for this page and might be corrupted." By sproadic I mean 3-4 times during the past...
3
by: Philip Tripp | last post by:
I've read numerous sources stating that view state can be disabled per control, and per page, but can't seem to keep web form controls from remembering their state on a postback. I'm using VS.Net...
10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
20
by: raptor | last post by:
hi, I want to make the following thing : select-based updatable VIEW, which have two more virtual-fields. One of them is concatenation of others and the second is calculated on the fly. Can I...
3
by: gaDev | last post by:
1) I build a Html Table dynamically (Header Row, and then 2 rows with data All 2 rows have 2 cells: cell(0) contains a delete button (ASP Button), cell(1) contains a HTML Text box 2) On Form Load...
2
by: Michael | last post by:
Hi, I need to access view state data in my CreateChildControls method. Is there anyway to achieve that? I'm using ASP.NET 1.1. Thanks.
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
9
by: Siddu | last post by:
Hi All, I am new to this group and this is my first doubt i am facing at present. I am doing data migration. In this sequence i need to alter few views. Alter in the sense, inside the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.