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

How can I completly disable ViewState?

Dispite the fact that ViewState="false" at the page level, and all controls
have viewstate disabled, ViewState is still on the page (<input
type="hidden" name="__VIEWSTATE" value="..." />

Why is that?

-Stan
Nov 18 '05 #1
3 1240
it stores an encrypted key to verifiy postback matches render and is used to
identify a postback.

-- bruce (sqlwork.com)


"Stan" <no****@yahoo.com> wrote in message
news:OC****************@tk2msftngp13.phx.gbl...
Dispite the fact that ViewState="false" at the page level, and all controls have viewstate disabled, ViewState is still on the page (<input
type="hidden" name="__VIEWSTATE" value="..." />

Why is that?

-Stan

Nov 18 '05 #2
Hi Stan,

As for the ViewState problem you mentiond, I agree with Bruce, the ASP.NET
page will store a hash code in the "__VIEWSTATE" hidden field, this hash
code is used to ensure that the view state hasn't been tampered with
between postbacks. We'll talk more about view state hashing in the "View
State and Security Implications" section.
And no matter whether we've disabled the viewstate or not. For detailed
description, you can have a look into the following article:

#Understanding ASP.NET View State
http://msdn.microsoft.com/library/en...asp?frame=true

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #3
Excellent article, thank you very much

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:K8*************@cpmsftngxa06.phx.gbl...
Hi Stan,

As for the ViewState problem you mentiond, I agree with Bruce, the ASP.NET
page will store a hash code in the "__VIEWSTATE" hidden field, this hash
code is used to ensure that the view state hasn't been tampered with
between postbacks. We'll talk more about view state hashing in the "View
State and Security Implications" section.
And no matter whether we've disabled the viewstate or not. For detailed
description, you can have a look into the following article:

#Understanding ASP.NET View State
http://msdn.microsoft.com/library/en...asp?frame=true
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

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

Similar topics

2
by: Homa | last post by:
Hi, I have a datalist with linkbuttons embedded within. In order for the onClick event to fire, I need to have EnableViewState = true. But since there are quite a lot of data, simply enable...
1
by: Rhodri | last post by:
Hi all I have a datagrid which can display upto 20,000 records and the viewstate gets very big. I have tried turning of viewtate using EnableViewState = false both on the parent page and on the...
2
by: Fluxray | last post by:
--Background: I have a webform including a datagrid. The datagrid is using template. Its ItemTemplate is used to display a look-up-table with labels. its EditItemTemplate is used to edit a row in...
7
by: Jo Inferis | last post by:
For reasons that are unlikely to become clear at the moment, I have a page with some validation controls on it which opens a dialog. The dialog does *stuff* and then closes with a call to : ...
4
by: Umut Tezduyar | last post by:
I want to get rid of the hidden field _VIEWSTATE. I tried these: I tried to disable ViewState property. I tried to override Page's RegisterHiddenField method. I tried to override Page's...
7
by: George Ter-Saakov | last post by:
on my page I have <%@ Page Language="C#" EnableViewState="false"%> But in HTML i still see __VIEWSTATE hidden variable. <form name="form1" method="post" action="......" id="form1"> <div>...
6
by: sri_san | last post by:
Hello, I have a aspx page in which I would like to eliminate all of the hidden variables as this page would be imported to an email client and the hidden controls are usually rendered in the mail...
6
by: =?Utf-8?B?Unlhbg==?= | last post by:
Hi, I found out that Text property is perserved, but disable/enable status is not preserved, especially I change this setting of a server side text box with client side javascipt and then post...
4
by: =?Utf-8?B?TUNN?= | last post by:
I am trying to disable ViewState at the application level. I have the following line in my web.config: <pages enableViewState="false"></pages> But it is not working. What can I do?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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?
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
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
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.