Solved

Viewstate and session

Posted on 2014-03-06
2
347 Views
Last Modified: 2014-03-07
Hi,

I want to see the content of ViewState and Session content in my aspx.cs. I can see the counts but not the contents. What to do?

Regards.
0
Comment
Question by:jazzIIIlove
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 39911034
For view state you can use:
1)  Fiddler
2) Firefox you can use this add-on
or
3) IE developer tools (IE11)
Grab the view state from the response and then if you need to decode it use:
http://lachlankeown.blogspot.com.au/2008/05/online-viewstate-viewer-decoder.html

For session, you can just watch the following variables in your VS debug mode:
HttpContext.Current.Session.Count
HTTPContext.Current.Session.Contents
or  use the SessionViewHandler described at:
http://www.codeproject.com/Articles/4170/Exploring-ASP-NET-Session-State-and-Cache-data
0
 
LVL 12

Author Closing Comment

by:jazzIIIlove
ID: 39913671
Cool!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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