Wrox Programmer Forums
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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 9th, 2013, 09:16 PM
Authorized User
 
Join Date: Apr 2013
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default Session state and ViewStateMode

Just a bit confused about EnableViewState and ViewStateMode. Do these directives control session objects on the server side or the state information that gets stored in a hidden field on the page in the browser? Thank you.
 
Old April 10th, 2013, 02:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

They control if and how controls can store data in the hidden view state field. Both options have nothing to do with session state.

Google knows a lot more about this:

http://msdn.microsoft.com/en-us/libr...viewstate.aspx
http://msdn.microsoft.com/en-us/libr...statemode.aspx
http://stackoverflow.com/questions/6...nableviewstate

Cheers,

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!
 
Old April 10th, 2013, 07:51 AM
Authorized User
 
Join Date: Apr 2013
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Thank you so much





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session state prisma Classic ASP Basics 3 March 16th, 2010 01:26 PM
Session state error shoakat ASP.NET 2.0 Professional 9 July 26th, 2007 12:09 PM
Session State|View State|Do I have other options? rockon ASP.NET 1.x and 2.0 Application Design 2 October 5th, 2005 07:10 PM
maintaining session state in C# grs General .NET 0 January 13th, 2005 03:46 AM





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