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 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
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
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 >
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 >
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 >> > >> >> >>
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 >> > >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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.
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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...
|
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,...
| |