473,847 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1860
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**@discussio ns.microsoft.co m> wrote in message
news:89******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:89******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:14******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:89******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:14******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:89******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:14******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
>> news:89******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:A7******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:14******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
>> news:89******** *************** ***********@mic rosoft.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
1590
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 properties of various controls in the UI. the event is fired when the user enters some info. on the page, initiating a post back etc. However, when i test the page, the changes that should appear in the UI don't happen. debugging through the code...
0
1105
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 properties of various controls in the UI. the event is fired when the user enters some info. on the page, initiating a post back etc. However, when i test the page, the changes that should appear in the UI don't happen. debugging through the code...
2
783
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 two days out of 100's of hits. The error just started yesterday and this app has been running for quite some time without this error and has not been updated just before or after the error started. Reseaching this error I've checked the...
3
2131
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 2002, .Net Framework 1.0 SP2. I create a new project, and add a new web form to the project. On the page properties, I set EnableViewState to False and verify that the @ Page directive has "enableViewState=false" in it. I then add a TextBox...
10
8840
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 other things, can create views based on existing tables and a table of column name equivalents. If I accidently introduce a column name equivalent that is the same as another column, I end up with a CREATE VIEW SQL statement that is in error, if...
20
2037
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 do this and if yes how? can u give some example? Here is the test bed : table1) id, date, field1, field2
3
1724
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 and get some data from a dataset and then from it's contents build the page At this point the page is rendered and 2 rows are displayed. There is an Add button that a user can click to add another row to the table. This works fine and the row...
2
2802
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
7515
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 it to reset info in a combo box. Below is some sample code for my view interface and the presenter: public interface IDevToolView
9
8372
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 existing query of view i want to include one more column.
0
9892
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10995
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10654
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10718
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9493
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7888
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5729
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4130
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3168
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.