473,467 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SavePageStateToPersistenceMedium still sends viewstate variable to client

I am saving the viewstate at the server for pocket pc clients to get around
the old Invalid Viewstate error.

This works perfectly, however when I look at the html source of the page
served up to the client, it still contains the hidden viewstate variable and
data.
It's not being used and it's eating up wireless network data usage charges
as well as slowing down the page load time unnecessarily.

How do I stop that variable from being sent while still maintaining
viewstate at the server?

Here are the functions I use to save viewstate and load it at the server
(c#):

protected override void SavePageStateToPersistenceMedium( object viewState )
{
base.SavePageStateToPersistenceMedium( viewState );
Session["VIEWSTATE"] = viewState;
}

protected override object LoadPageStateFromPersistenceMedium()
{
return Session["VIEWSTATE"];
}
Nov 17 '05 #1
1 2341
> It's not being used and it's eating up wireless network data usage charges
as well as slowing down the page load time unnecessarily.

maybe you should contact the wireless network host and ask for a commission!
Nov 17 '05 #2

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

Similar topics

3
by: Pradeep | last post by:
Hi, I am storing the DataTable in a ViewState. ViewState("mydata") = dsRedemption.T_Redemption_Dtl Then I am casting the ViewState into a DataTable variable. Dim x As New DataTable x =...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
1
by: Sky | last post by:
Although I've been using C# for the last month or so, and accepting out of blind faith the ViewState, I do have some nagging questions about it... can you help verify the following statements? ...
7
by: et | last post by:
I'm not sure I understand the use of the ViewState. Do I understand correctly that values of controls are automatically held in a hidden control called ViewState? If so, then why can't we get...
10
by: Lloyd Dupont | last post by:
When you define UserControl in source code the sample I see are often like that: ============ public string Text { get { String s = (String)ViewState; return ((s == null) ? String.Empty : s);...
6
by: mosscliffe | last post by:
I am testing for how/when a page is posted back and I decided to use a ViewState variable in PageLoad to set up a counter, but it appears, the ViewState is cleared on each PageLoad. So then I used...
1
by: Arpan | last post by:
What are the differences between a ViewState variable & Session variable? Thanks, Arpan
2
by: Jman | last post by:
I have a selection window, here are some dropdownlist if i click on an item in a dropdownlist the page reloads itself an puts the selected item in a textbox. Then i can search on the value in the...
8
by: Britt | last post by:
Hi, when uing session("myvar"), or viewstate("myvar") or cache("myvar), are the values always strings? I mean: dim dt as date viewstate("test")=dt ..... dt=vieswtate("test")
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
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
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...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.