Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2013, 02:46 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default ViewState Encrypted

I was doing the exercises on page 558 and I looked at the HTML source code and I noticed a ton of viewstate material and it also says that it is VIEWSTATEENCRYPTED. Is that encryption as a result of the Entity Framework and the encryption routines and the validation controls?
What does <div class="aspNetHidden"> mean? Are there whole classes that are being hidden from the end user? Below is sample print out of the HTML from the genres.aspx page as it is discussed in the book from page 558

<div class="aspNetHidden">

<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="wfbPgXEtW/oesN2u7A5LAm6RHgOAzp3QfxjQTH8z51lNYiaYNc/PdCi1kmarTmOLaXmL5DBruj+AIj2uLIh5elxuc98Wdu5hiEV2I aC9jfkiUyr0vQNt0FzA92YGemrUR+E2RLzscY0xungdZo5O86L CGdL6iFeCdfCm8aDgRQqdUDbhDTz8+2knwBicww3LgP1EPEB8O n6VtYv4/k6UqXsZQwDJLkcmtr/lqyihwsUUvZ3eixvKdCFgFTVgNIDuc2XxZvJb8NUetnzUhpeOm x9Xl32zaFi/ofVxBm4I+dtyzhb+BBHzKQD4C6VS05ROURrIcn4Z3a77ALnhtS 4iX8a9ap50DVSC+giz96IsU1k5OBlUbmqtTovuzkhpqJ95jg9N tp7/+Gv1tEqM2ZEjJt1l69ZX7nPe66ZkAgHBIKWlll1/6G0Q4mt8g6zmTeeHpeWUohlzUQaLAxQU/qFq2hM/3AXNOB5VdWFrW6N2uHNsqq2DDWR9/cMhWSdia6aBEOWXWCoJo13+gk9w/DnRXctStrVhswTfQLwY41pzUDx5X+cng3AopHI0sxhfm1n+4vg gjhWQhTENczTr7e7AjGkMIbag33BffYGc63kVSCt9IB5yg0c0Q u8plq+BNR7nkVIOPvfakwHn2tjuFSo01TVegxzzhECNvRKEwjn a9z8qtL+ULL+ymeBHz4qDhDX2xQOh9KWrnMZJWpYDnyKL0dhZx/vo62Y/75HfiZp0HcUpORz2YUZc3k4xN5cv2F0kUEM5IXsB863Mp51DgQ JXFxGP+ngmkX+fn3tfg0n9EVSJgBh+g/RxdZVacOe/B3dTLYClZMU2GRRAKDPWulZD/cvPmYQjiOZAb9h71Z+7SfGI6pnOyR2+ftS70gOKj1Kjv2AqDP2 PrtvHEFE0LHjL0A==" />
</div>
 
Old April 27th, 2013, 09:19 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Is that encryption as a result of the Entity Framework and the encryption routines and the validation controls?
No. EF has nothing to do with viewstate and encryption. What you see is part of the viewstate mechanism that ASP.NET uses, discussed extensively in Chapter 4.

Quote:
What does <div class="aspNetHidden"> mean?
It means nothing. To generate valid hidden fields, ASP.NET wraps them in a div element. To clearly identity that div it has been given a class name so you can target if you have a reason for it.

Google knows a lot more about this: https://www.google.com/#output=searc...=1050&bih=1272

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Encrypted Password cancer10 Classic ASP Databases 0 April 10th, 2007 11:12 PM
Where and how to store encrypted passwords usprasad_m Visual C++ 2005 0 December 15th, 2006 07:01 AM
Encrypted password harini19 Java Basics 0 February 15th, 2006 07:29 AM
Random+Encrypted Password ruhin Pro PHP 1 June 28th, 2004 02:07 PM
Encrypted Password field knight Classic ASP Databases 7 June 28th, 2004 12:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.