Link to home
Start Free TrialLog in
Avatar of cybernation989
cybernation989

asked on

Defining ViewState

This is not an exam or homework

The ASP.NET ViewState is a representation of the state of a page when it was last processed on the server. The
ViewState information is stored by default...


1  ...on the server in a Session variable that is unique for each page.
2  ...in a hidden form element as plain text.
3  ...in a hidden form element as a Base64 encoded string.
4  ...in a hidden form element that is encrypted so it cannot be tampered with.
Avatar of bungHoc
bungHoc
Flag of Viet Nam image

In your previous question, you've already found a tutorial for RegEx. Why don't you try to red few lines of this page and figure out the answer for yourself:
http://www.w3schools.com/aspnet/aspnet_viewstate.asp
Avatar of cybernation989
cybernation989

ASKER

Oh sorry I should posted that here... thanks for beating me to it... According to the site the answer could be 3 or 4 but if you really wanted to test 3 out you can to decode it at http://www.motobit.com/util/base64-decoder-encoder.asp 

Since 3 doesnt work the the answer is number 4...

Thanks again BungHoc
ASKER CERTIFIED SOLUTION
Avatar of bungHoc
bungHoc
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<--- Bows his head in shame

Like you have posted in the other topic
http://msdn2.microsoft.com/en-us/library/ms972976.aspx

"
Ideally the view state should not need to be encrypted, as it should never contain sensitive information. If needed, however, the LosFormatter does provide limited encryption support.
"

Thank you for correcting me I found http://www.pluralsight.com/blogs/fritz/archive/2004/06/03/408.aspx that goes more into the 64bit encoding
Is it me or is this starting to sound weird...!!!