Solved

Defining ViewState

Posted on 2007-11-28
5
273 Views
Last Modified: 2008-03-06
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.
0
Comment
Question by:cybernation989
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:bungHoc
ID: 20364153
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
0
 

Author Comment

by:cybernation989
ID: 20364218
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
0
 
LVL 7

Accepted Solution

by:
bungHoc earned 500 total points
ID: 20364262
Well.. let's do a bit of reasoning here:
1. The view state of a page is, placed in a hidden form field named __VIEWSTATE
Answer 1 is out.

2. If you've taken a look at the page you'll see something like this: <input type="hidden" name="__VIEWSTATE"
value="dDwtNTI0ODU5MDE1Ozs+ZBCF2ryjMpeVgUrY2eTj79HNl4Q=" />
Answer 2 is out.

3. What is the purpose of ViewState? Does ViewState have any sensitive information? -- Don't think so.. However you can still encrypt it if you really want to (I don't remember with what need to look for it).
Answer 4 is out.

That leaves you with answer 3 is the correct one.
0
 

Author Comment

by:cybernation989
ID: 20364302
<--- 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
0
 
LVL 7

Expert Comment

by:Infinite_Recursion
ID: 20364687
Is it me or is this starting to sound weird...!!!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
convert html to string 6 34
designing in object programming 12 75
Need help with building query string 2 19
Reading the web config for a running service on Windows 10 16 40
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question