开发者

Debugging ASP.NET Session Variables

开发者 https://www.devze.com 2023-01-15 06:37 出处:网络
when the process run in the same browser, it\'s easy to open a new TAB and check the session variables there, everything works fine in this situation.

when the process run in the same browser, it's easy to open a new TAB and check the session variables there, everything works fine in this situation.

But when a webpage runs inside a WebBrowser Control (under Windows Forms) for example, I can no longer get any Session Variable that process is using.

Does anyone have an idea on how to get the variables?

b开发者_运维知识库efore I create a value to use Session Variables or File Output in the web.config :)

Debugging ASP.NET Session Variables

The image above is my Debug window but it's always empty when I run the web page from a different process :o(


added

Tracing is not an option as I get this from Trace:

Debugging ASP.NET Session Variables

The Debug window assigns that List to a GridView and shows up nicely.


ASP.NET Tracing Overview

ASP.NET tracing enables you to view diagnostic information about a single request for an ASP.NET page. ASP.NET tracing enables you to follow a page's execution path, display diagnostic information at run time, and debug your application. ASP.NET tracing can be integrated with system-level tracing to provide multiple levels of tracing output in distributed and multi-tier applications.

Inserted from http://msdn.microsoft.com/en-us/library/bb386420.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消