Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: _VIEWSTATE


Message #1 by "Jeffrey Widmer" <jwidmer@o...> on Thu, 25 Jan 2001 17:43:15 -0500
Sorry for cross-posting...



Does anyone know exactly what is being passed back and forth in the

_ViewState form control?  e.g. <input type="hidden" name="__VIEWSTATE"

value="YTB......." />

What does the value contain?



And does anyone know how to decrypt it (assuming it's actually something

worth looking at)?

I would like to see just what data is being sent back and forth.

Thanks in advance,

-Jeff



Message #2 by "Dan Green" <dangreen@b...> on Fri, 26 Jan 2001 22:49:02 +1100
Anything stored in the State object is serialized to the __VIEWSTATE field

on the form, by default.  The Page class uses its (overridable)

SavePageStateToPersistenceMedium method to perform the serialization.



Most server controls use view state to save their properties (such as

background color, etc.) between round-trips.  If you don't have need to

store state across requests then you can set the page's (or individual

control's) MaintainState property to false and save the bandwidth

(especially important to switch off with controls that can pack a whole

lotta data such as the DataGrid).



Also, I have read posts made by members of the Microsoft team that say they

have yet to optimize the storage of this data.  I expect we'll see use of

bandwidth-saving compression algorithms in the next beta.





Cheers,

Dan

(http://dotnetdan.blogspot.com)



----- Original Message -----

From: "Jeffrey Widmer" <jwidmer@o...>

To: "ASP+" <aspx@p...>

Sent: Friday, January 26, 2001 9:43 AM

Subject: [aspx] _VIEWSTATE





> Sorry for cross-posting...

>

> Does anyone know exactly what is being passed back and forth in the

> _ViewState form control?  e.g. <input type="hidden" name="__VIEWSTATE"

> value="YTB......." />

> What does the value contain?

>

> And does anyone know how to decrypt it (assuming it's actually something

> worth looking at)?

> I would like to see just what data is being sent back and forth.

> Thanks in advance,

> -Jeff

>

>


  Return to Index