Solved

Viewstate and session

Posted on 2014-03-06
2
340 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
2 Comments
 
LVL 35

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Combine two datatables into one based on a value from second datatable 4 32
Replace &lt; with < 14 56
ASP.NET 5 Templates 2 65
IIS Authorization for Web Service 2 22
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 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

23 Experts available now in Live!

Get 1:1 Help Now