Solved

Defining ViewState

Posted on 2007-11-28
5
255 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
<--- 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
Comment Utility
Is it me or is this starting to sound weird...!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now