<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>HttpHandlers and HttpModules</title><link>http://forums.asp.net/27.aspx</link><description>Extending the ASP.NET Framework through HttpModules and HttpHandlers.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Reading what went to current page - HTTP Stuff?</title><link>http://forums.asp.net/thread/2664895.aspx</link><pubDate>Mon, 06 Oct 2008 09:48:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2664895</guid><dc:creator>NNikola</dc:creator><author>NNikola</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2664895.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=2664895</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;photo_tom:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Question - As I understand it, this has to be added to the page being rendered.
&lt;br /&gt;

&lt;br /&gt;
Is it possible to do this via an Http_Module?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you mean with &amp;quot;HttpWebRequest&amp;quot; you can try with:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(Url);&lt;br /&gt;myRequest.Method = &amp;quot;GET&amp;quot;;&lt;br /&gt;WebResponse myResponse = myRequest.GetResponse();&lt;br /&gt;StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8);&lt;br /&gt;string result = sr.ReadToEnd();&lt;br /&gt;sr.Close();&lt;br /&gt;myResponse.Close();&lt;br /&gt;&lt;/blockquote&gt;</description></item><item><title>Re: Reading what went to current page - HTTP Stuff?</title><link>http://forums.asp.net/thread/702170.aspx</link><pubDate>Fri, 24 Sep 2004 21:49:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:702170</guid><dc:creator>photo_tom</dc:creator><author>photo_tom</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/702170.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=702170</wfw:commentRss><description>Question - As I understand it, this has to be added to the page being rendered.
&lt;br /&gt;

&lt;br /&gt;
Is it possible to do this via an Http_Module?</description></item><item><title>Re: Reading what went to current page - HTTP Stuff?</title><link>http://forums.asp.net/thread/698442.aspx</link><pubDate>Tue, 21 Sep 2004 14:49:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:698442</guid><dc:creator>MilanNegovan</dc:creator><author>MilanNegovan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/698442.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=698442</wfw:commentRss><description>I believe your code should look as follows:
&lt;br /&gt;

&lt;br /&gt;
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
&lt;br /&gt;
   Dim sb As New StringBuilder
&lt;br /&gt;
   Dim sw As New StringWriter(sb)
&lt;br /&gt;
   Dim hW As New HtmlTextWriter(sw)
&lt;br /&gt;
   Dim pageresult As String
&lt;br /&gt;
   MyBase.Render(hW)
&lt;br /&gt;
   pageresult = sb.ToString()
&lt;br /&gt;
   writer.Write(pageresult)
&lt;br /&gt;
End Sub
&lt;br /&gt;</description></item><item><title>Re: Reading what went to current page - HTTP Stuff?</title><link>http://forums.asp.net/thread/697822.aspx</link><pubDate>Mon, 20 Sep 2004 22:24:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:697822</guid><dc:creator>mmudassir</dc:creator><author>mmudassir</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/697822.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=697822</wfw:commentRss><description>Thansk for quick reply, a query:
&lt;br /&gt;

&lt;br /&gt;
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
&lt;br /&gt;
        '' *** Write the HTML into this string builder
&lt;br /&gt;
        ''StringBuilder sb = new StringBuilder();
&lt;br /&gt;
        Dim sb As New StringBuilder
&lt;br /&gt;
        ''StringWriter sw = new StringWriter(sb);
&lt;br /&gt;
        Dim sw As New StringWriter(sb)
&lt;br /&gt;
        Dim hW As New HtmlTextWriter(sw)
&lt;br /&gt;
        Dim pageresult As String
&lt;br /&gt;
        pageresult = sb.ToString()
&lt;br /&gt;
        Parent.Render(hW)
&lt;br /&gt;

&lt;br /&gt;
    End Sub
&lt;br /&gt;

&lt;br /&gt;
when i wrote this thing it gives an error on Parent.Render(hW) saying :
&lt;br /&gt;

&lt;br /&gt;
'System.Web.UI.Control.Protected Overridable Sub Render(writer As System.Web.UI.HtmlTextWriter)' is not accessible in this context because it is 'Protected'.
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
an idea?
&lt;br /&gt;

&lt;br /&gt;
Take Care</description></item><item><title>Re: Reading what went to current page - HTTP Stuff?</title><link>http://forums.asp.net/thread/697790.aspx</link><pubDate>Mon, 20 Sep 2004 21:49:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:697790</guid><dc:creator>SomeNewKid</dc:creator><author>SomeNewKid</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/697790.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=697790</wfw:commentRss><description>&lt;span style="color=#6633cc;width:550px;;"&gt;&amp;gt; any sample article related to that topic?&lt;/span&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;span style="color=#000000;width:550px;;"&gt;The following all work with the HTML rendered by an ASPX page.
&lt;br /&gt;

&lt;br /&gt;
&lt;a target="_new" href="http://west-wind.com/weblog/posts/481.aspx"&gt;Capturing Output from ASP.Net Pages&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;a target="_new" href="http://aspalliance.com/articleViewer.aspx?aId=71&amp;amp;pId="&gt;Modifying Page Output&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;a target="_new" href="http://www.aspnetresources.com/articles/HttpFilters.aspx"&gt;Producing XHTML-Compliant Pages With Response Filters&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
(Remember, Google knows all.)&lt;/span&gt;</description></item><item><title>Reading what went to current page - HTTP Stuff?</title><link>http://forums.asp.net/thread/697787.aspx</link><pubDate>Mon, 20 Sep 2004 21:39:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:697787</guid><dc:creator>mmudassir</dc:creator><author>mmudassir</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/697787.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=697787</wfw:commentRss><description>Hi!
&lt;br /&gt;

&lt;br /&gt;
I wanna see what HTML code was rendered and flush to the browser, any possibility of it? and capturing that HTML stuff in the one single variable? If so then what procedure i have to use? what classes I need to know? and any sample artilce related to that topic?
&lt;br /&gt;

&lt;br /&gt;
Take Care,
&lt;br /&gt;

&lt;br /&gt;</description></item></channel></rss>