c# - how to dump response headers in ASP.Net -
I am using VSTS 2008 + C # + .NET 3.5 to develop ASP.Net. I want to dump all the feedback headers back to the client for a specific aspx file, how to do this easily?
I know how to use feedback. Header collection, but my confusion is where to get the exact response title? For example, if I say in Page_Load, then all the response headers can not be calculated, but if I tell after the response. Close, the exception will be thrown.
Any advice?
EDIT1: While using OpenRender in VSTS 2008 debug mode, meeting with the following exception (i.e., by pressing F5 to debug)
{"This operation is done by IIS integrated pipeline mode Required. "}
Protected Override Zero Opener (EventAgds E) {base.OnPreRender (E); (Author: WriteLine (DateTime.UtcNow + "Feedback Header") using the author (new streamer writer = new streamer ("dump 123.txt", true)); Foreign (HTTPCTXCount.Respons.HeaderKeys in Straight Items) {Authors. Videoline (item + ":" + HTTP Contex .Count. Response headers [items]); In advance, George
What's it about onPreRender ?? Prior to the submission of the page, and all the postings of HTE have taken place after processing. By that time all things should be there.
Mark
Comments
Post a Comment