Solved

Viewstate and session

Posted on 2014-03-06
2
341 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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