473,760 Members | 9,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1685
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*******@gmai l.comwrote in message
news:11******** **************@ 11g2000cwr.goog legroups.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
1398
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 internally is save my object in viewstate. So my object has to be serializable in order to get stored in viewstate. I am using code mentioned below for serialization but it gives me this error when i try to bind it. I can see the serialized xmldocument...
1
2678
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 objClassA = (ClassA) ViewState // After PostBack Any Body can help me out?
1
2014
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 store in the ViewState, right? I'm, however, unable to do so. I can add the collection object successfully, but with the page reload, it tells me the ViewState is
0
1465
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 to StateBag serialization... If ViewState serialization is optimized for Int32, Bool, String, Color, and arrays thereof... what happens when I want to serialize the instance of a class that contains an Int32, Bool String, or Color?
2
7984
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 viewstate and getting it back from the client on a postback. But the last line of the sample code below throws a "Stream was not readable" error when i'm trying to get the serialized object back out of the viewstate and memorystream. Any...
9
1871
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 the server to remember a variables state *without* having to go through the rigmarole of saving and loading to and from the Session state manually or similar workaround for any Types (including custom types) in exactly the same way web controls...
7
3548
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 TypeConverter other than ReferenceConverter to be put in viewstate." I've included the <Serializable()> attribute, but I'm still getting the same error. The class is below ... as you can see it contains a Collection, two
3
2262
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 I receive the object from the web service, I'm interested in storing that object in ViewState in the web application, but I receive the error below. I'm not shocked that the web application can't serialize the object as the attribute isn't...
12
1927
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
9521
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
9945
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
9900
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
9765
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8768
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
7324
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
5214
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...
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2733
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.