468,103 Members | 1,175 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

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 1137
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Homa | last post: by
1 post views Thread by Rhodri | last post: by
7 posts views Thread by Jo Inferis | last post: by
7 posts views Thread by George Ter-Saakov | last post: by
6 posts views Thread by sri_san | last post: by
6 posts views Thread by =?Utf-8?B?Unlhbg==?= | last post: by
4 posts views Thread by =?Utf-8?B?TUNN?= | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.