Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Even I disable the ViewState property, I still see the hidden field _VIEWSTATE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Umut Tezduyar - 15 Feb 2006 19:41 GMT
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 SavePageStateToPersistenceMedium.

None of them worked.

Any suggestions?
Teemu Keiski - 15 Feb 2006 19:56 GMT
Hi,

overriding SavePageStateToPersistenceMedium (and then equally
LoadPageStateFromPersistenceMedium) is the solution in ASP.NET 1.x. With
ASP.NET 2.0, you could just provide your own PageStatePersister class to
override the behaviour (or use the built.in SessionPageStatePersister class)

This article also gives some insight:
http://aspalliance.com/472

Signature

Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

>I want to get rid of the hidden field _VIEWSTATE.
>
[quoted text clipped - 7 lines]
>
> Any suggestions?
Ravi Ambros Wallau - 15 Feb 2006 20:34 GMT
Even on this case, __VIEWSTATE still exists as a hidden field...
You should not care about it...
> Hi,
>
[quoted text clipped - 18 lines]
>>
>> Any suggestions?
Juan T. Llibre - 15 Feb 2006 20:04 GMT
You will *still* have a minimal ViewState property,
representing the page itself, even if you turn off the view state
on each and every control and even if you disable it completely.

See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/a
sp11222001.asp

and
http://www.aspnetresources.com/articles/ViewState.aspx

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
>I want to get rid of the hidden field _VIEWSTATE.
>
[quoted text clipped - 7 lines]
>
> Any suggestions?
Steve C. Orr - 15 Feb 2006 20:31 GMT
The _VIEWSTATE hidden field will always be there for an ASP.NET page, but if
you've diabled viewstate then its contents will be tiny and mostly empty,
only filled with minimal data that ASP.NET requires to function properly.

Signature

I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net

> I want to get rid of the hidden field _VIEWSTATE.
>
[quoted text clipped - 7 lines]
>
> Any suggestions?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.