HighTechTalks DotNet Forums  

ViewState

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss ViewState in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vik
 
Posts: n/a

Default ViewState - 09-26-2005 , 09:54 AM






Is it possible to manage the ViewState by a script?

Thanks.



Reply With Quote
  #2  
Old   
Bruce Barker
 
Posts: n/a

Default Re: ViewState - 09-26-2005 , 11:57 AM






it encrypted to prevent hacking. create your own hidden field your client
script to write to.

-- bruce (sqlwork.com)

"Vik" <viktorum@==yahoo.com==> wrote

Quote:
Is it possible to manage the ViewState by a script?

Thanks.





Reply With Quote
  #3  
Old   
Mythran
 
Posts: n/a

Default Re: ViewState - 09-26-2005 , 08:05 PM




"Bruce Barker" <brubar_nospamplease_ (AT) safeco (DOT) com> wrote

Quote:
it encrypted to prevent hacking. create your own hidden field your client
script to write to.

-- bruce (sqlwork.com)

"Vik" <viktorum@==yahoo.com==> wrote in message
news:Okao4DqwFHA.3588 (AT) tk2msftngp13 (DOT) phx.gbl...
Is it possible to manage the ViewState by a script?

Thanks.




This is not true. The ViewState (by default) is not encrypted...the
ViewState statebag object is serialized to XML (which would be too much
bloat for a web application). After being serialized to XML, it is then
converted to a Base64 string. Using a client-side script to convert from
Base64 to the original xml string would produce the desired results (you
would then parse the XML data).

HTH!

Mythran



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.