Search This Blog

Loading...

5.09.2008

How-to debug web pages efficienty with C#

//call Utils.Debugger.DebugPage ( this.Page );
public static void DebugPage ( System.Web.UI.Page page )
{

WriteIf ( "System.IO.Path.GetFileName ( System.Web.HttpContext.Current.Request.Url.AbsolutePath ) -- " +
System.IO.Path.GetFileName ( System.Web.HttpContext.Current.Request.Url.AbsolutePath ) );
WriteIf ( "System.Web.HttpContext.Current.Request.Url.AbsolutePath -- " +
System.Web.HttpContext.Current.Request.Url.AbsolutePath );
WriteIf ( "System.Web.HttpContext.Current.Request.Url.AbsoluteUri -- " +
System.Web.HttpContext.Current.Request.Url.AbsoluteUri );
WriteIf ( "System.Web.HttpContext.Current.Request.Url.DnsSafeHost -- " +
System.Web.HttpContext.Current.Request.Url.DnsSafeHost );
WriteIf ( "System.Web.HttpContext.Current.Request.Url.Fragment -- " +
System.Web.HttpContext.Current.Request.Url.Fragment );
WriteIf ( "System.Web.HttpContext.Current.Request.Url.Host -- " +
System.Web.HttpContext.Current.Request.Url.Host ) ;
WriteIf ( "System.Web.HttpContext.Current.Request.Url.HostNameType -- " +
System.Web.HttpContext.Current.Request.Url.HostNameType ) ;
WriteIf ( "System.Web.HttpContext.Current.Request.Url.LocalPath -- " +
System.Web.HttpContext.Current.Request.Url.LocalPath ) ;
WriteIf ( "System.Web.HttpContext.Current.Request.Url.OriginalString -- " +
System.Web.HttpContext.Current.Request.Url.OriginalString ) ;
WriteIf ( "System.Web.HttpContext.Current.Request.Url.PathAndQuery -- " +
System.Web.HttpContext.Current.Request.Url.PathAndQuery ) ;
WriteIf ( "System.Web.HttpContext.Current.Request.Url.Scheme -- " +
System.Web.HttpContext.Current.Request.Url.Scheme ) ;
WriteIf ( "System.Web.HttpContext.Current.Request.Url.Segments.ToString () -- " +
System.Web.HttpContext.Current.Request.Url.Segments.ToString () );
WriteIf ( "System.Web.HttpContext.Current.Request.Url.UserInfo -- " +
System.Web.HttpContext.Current.Request.Url.UserInfo );

} //eof DebugPage

0 comments:

Post a Comment

Cool , check also:
This nice link
This nice link
This nice link

Blog Archive

My Blog List

Video Bar

Loading...

About Me

My Photo
Yordan Georgiev
It is one thing to know what to want, second to really want it, third to know how to do it, fourth to be skillful to do it, fifth to actually do it and last but not least to go on without regrets after having done it. My pieces allover the net: contributions in en wikipedia contribs in bg wikipedia and StackOverflow ; ) sanastot dictionary
View my complete profile