Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Viewstate and session

Posted on 2014-03-06
2
Medium Priority
?
356 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

604 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