473,395 Members | 1,936 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,395 software developers and data experts.

Viewstate Without Serialization

I have been working with a project where I need to deal with lot of
data. This data includes 10 thousands of records in the data grid.
There are thousand of users connected to the application, this causes
big performance problem with the application.

I learnt that it is Serializing/Deserializing causing the system to be
slow. Serializing is required because I am storing the ViewState to the
SessionState and SessionState is in StateServer.

Viewstate can be stored in the text file instead of Session, good, but
Serializing/Deserializng still causes problems with performance. Is
there any way we can avoid Serializing/Deserializing ViewState and
store it in Binary Format in a text file? Or may be convert the
VIEWState to some format that can be stored in text file without
Serializing?

Any help will be appreciated.

Jan 8 '07 #1
4 1663
Paging on the DataGrid won't work in your case?

an*******@gmail.com wrote:
I have been working with a project where I need to deal with lot of
data. This data includes 10 thousands of records in the data grid.
There are thousand of users connected to the application, this causes
big performance problem with the application.

I learnt that it is Serializing/Deserializing causing the system to be
slow. Serializing is required because I am storing the ViewState to the
SessionState and SessionState is in StateServer.

Viewstate can be stored in the text file instead of Session, good, but
Serializing/Deserializng still causes problems with performance. Is
there any way we can avoid Serializing/Deserializing ViewState and
store it in Binary Format in a text file? Or may be convert the
VIEWState to some format that can be stored in text file without
Serializing?

Any help will be appreciated.
Jan 8 '07 #2
Paging/DataGrid is not what I am asking. What I am looking is "Is there
any way to store viewstate into a File (may be binary format) without
serialization".

Thx for reply but I do not have answer yet.
Varangian wrote:
Paging on the DataGrid won't work in your case?

an*******@gmail.com wrote:
I have been working with a project where I need to deal with lot of
data. This data includes 10 thousands of records in the data grid.
There are thousand of users connected to the application, this causes
big performance problem with the application.

I learnt that it is Serializing/Deserializing causing the system to be
slow. Serializing is required because I am storing the ViewState to the
SessionState and SessionState is in StateServer.

Viewstate can be stored in the text file instead of Session, good, but
Serializing/Deserializng still causes problems with performance. Is
there any way we can avoid Serializing/Deserializing ViewState and
store it in Binary Format in a text file? Or may be convert the
VIEWState to some format that can be stored in text file without
Serializing?

Any help will be appreciated.
Jan 9 '07 #3
Storing in binary form is a form of serialization I guess. If you are
up for some programming you could create your own state management and
bypass the serialization by sending the datatable/dataset directly to
session state. Then you would "only" have to deal with the problem of
boxing/unboxing.
an*******@gmail.com wrote:
Paging/DataGrid is not what I am asking. What I am looking is "Is there
any way to store viewstate into a File (may be binary format) without
serialization".

Thx for reply but I do not have answer yet.
Varangian wrote:
Paging on the DataGrid won't work in your case?

an*******@gmail.com wrote:
I have been working with a project where I need to deal with lot of
data. This data includes 10 thousands of records in the data grid.
There are thousand of users connected to the application, this causes
big performance problem with the application.
>
I learnt that it is Serializing/Deserializing causing the system to be
slow. Serializing is required because I am storing the ViewState to the
SessionState and SessionState is in StateServer.
>
Viewstate can be stored in the text file instead of Session, good, but
Serializing/Deserializng still causes problems with performance. Is
there any way we can avoid Serializing/Deserializing ViewState and
store it in Binary Format in a text file? Or may be convert the
VIEWState to some format that can be stored in text file without
Serializing?
>
Any help will be appreciated.
Jan 9 '07 #4
ViewState is state that is stored on the client side. Otherwise, you would
use some server-side caching mechanism. It represents the current state of
the page on the client side. Therefore, it must be readable on the client.
Putting it into a separate file on the client would certainly be possible,
but I don't see any point in doing so. It would have to be HTML or XML, and
would occupy the same amount of space, bandwidth, and upload/download time.
Due to its' "current state" nature, it must be refreshed with each PostBack.
I think you're looking at the wrong component here. Could you explain what
you are hoping to achieve with this?

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

Where there's a Will, there's a William.

<an*******@gmail.comwrote in message
news:11**********************@11g2000cwr.googlegro ups.com...
Paging/DataGrid is not what I am asking. What I am looking is "Is there
any way to store viewstate into a File (may be binary format) without
serialization".

Thx for reply but I do not have answer yet.
Varangian wrote:
>Paging on the DataGrid won't work in your case?

an*******@gmail.com wrote:
I have been working with a project where I need to deal with lot of
data. This data includes 10 thousands of records in the data grid.
There are thousand of users connected to the application, this causes
big performance problem with the application.

I learnt that it is Serializing/Deserializing causing the system to be
slow. Serializing is required because I am storing the ViewState to the
SessionState and SessionState is in StateServer.

Viewstate can be stored in the text file instead of Session, good, but
Serializing/Deserializng still causes problems with performance. Is
there any way we can avoid Serializing/Deserializing ViewState and
store it in Binary Format in a text file? Or may be convert the
VIEWState to some format that can be stored in text file without
Serializing?

Any help will be appreciated.

Jan 9 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sarfraz Hooda | last post by:
I have created an object which can bind to Microsoft DataGrid no issues but now i have to bind that object to a 3rd party Grid. When i bind my object to that grid's datasource what it does...
1
by: Harshdeep Mehta | last post by:
Hi all, I have written a page in which I want to preserve value of object - suppose A - value, so I used viewstate. but that give me error. Code : ViewState = objClassA; // Before PostBack...
1
by: igitur | last post by:
Hi all, I have a custom collection derived from System.Collections.Specialized.NameObjectCollectionBase. NameObjectCollectionBase already implements ISerializable, so it should be easy to...
0
by: S.Sigal | last post by:
Hello: I've been trying to 'organize' the layout of my larger controls by moving variables into instances of subclasses...but it just dawned on me that I might be opening a real can of worms due...
2
by: ce | last post by:
Being a newbie regarding serialization and memorystreams, I was trying to see if i could improve page performance (avoiding going to the db on a postback) by saving my serialized business object in...
9
by: Mark Broadbent | last post by:
Been a while since I've touched asp.net but one thing that always seems to fustrate me is the loss of state on variable declarations. Is there anyway (i.e. assigning an attribute etc) to instruct...
7
by: Ben Amada | last post by:
I've created a class that I need to store in ViewState. However when I try to store it in ViewState, I get the following error: "The type 'solution.pe2' must be marked as Serializable or have a...
3
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When...
12
by: Nick C | last post by:
Hi How can i reduce the viewstate for my asp.net application. It is getting very large now. What is a good solution? thanks N
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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...

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.