<?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>Search results matching tag 'Response'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=Response&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'Response'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Admin Role - protected admin folder</title><link>http://forums.asp.net/thread/3543305.aspx</link><pubDate>Wed, 02 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3543305</guid><dc:creator>mehryad</dc:creator><description>&lt;p&gt;I think what you should do is write a couple of lines of code to handle the Page_Load() event in the login.aspx. The code below checks to see if admin redirects to Admin Home; if Member redirects to Default (or wherever you want it to go) and if neither (anonymous) does nothing and therefore loads the Login.aspx page&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;if (User.IsInRole(&amp;quot;admin&amp;quot;))&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Redirect(&amp;quot;~/&amp;quot;);&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (User.IsInRole(&amp;quot;member&amp;quot;))&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Redirect(&amp;quot;~/&amp;quot;);&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;p&gt;&lt;p&gt;if (User.IsInRole(&amp;quot;admin&amp;quot;))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Redirect(&amp;quot;~/AdminHome.aspx&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (User.IsInRole(&amp;quot;member&amp;quot;))&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.Redirect(&amp;quot;~/Default.aspx&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hope this helps! Don&amp;#39;t forget to mark as answer if it does&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Http Response Content Length</title><link>http://forums.asp.net/thread/3512928.aspx</link><pubDate>Sat, 14 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3512928</guid><dc:creator>Robotuner</dc:creator><description>&lt;p&gt;Apparently, what I intended to do doesn&amp;#39;t work and I don&amp;#39;t have any idea what is wrong.&amp;nbsp; As described above, I need to send a response back, so this the complete response that I intended:&lt;/p&gt;
&lt;p&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //now post back the key.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String hashValue=&amp;quot;someTypeOfKey&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.ContentType = &amp;quot;application/www-url-encoded&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.AddHeader(&amp;quot;Key&amp;quot;, hashValue);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Response.Write(sb.ToString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.End();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What is getting returned is:&lt;/p&gt;
&lt;p&gt;HTTP/1.1 200 OK&lt;br /&gt;Content-Type: text/html; charset=utf-8;&lt;br /&gt;Content-Length: -1&lt;/p&gt;
&lt;p&gt;It does not appear that the Response values have been changed.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What am I omitting or doing wrong?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>HELP: How to force an aspx page to always be served vs. using cache...</title><link>http://forums.asp.net/thread/3269732.aspx</link><pubDate>Wed, 01 Jul 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3269732</guid><dc:creator>celoftis</dc:creator><description>&lt;p&gt;Using VS2005, VB code behind and javascript.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have several pages that when accessed for a second or subsequent times always need to hit the server - but what I&amp;#39;m seeing with some users is that they are accessing cached pages. I want to force these pages to always get the latest page from the server.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;From client side javascript I know how to set the &amp;quot;if-modifed-since&amp;quot; request header to ensure that my xmlHttpRequest&amp;#39;s are always served, i.e. &amp;quot;xmlHttp.setRequestHeader(&amp;quot;If-Modified-Since&amp;quot;, &amp;quot;Sat, 1 Jan 2000 00:00:00 GMT&amp;quot;);&amp;quot;. When I view the request headers collection from this request I see &amp;quot;If-Modified-Since&amp;quot; with a value of&amp;nbsp;&amp;quot;Sat, 1 Jan 2000 00:00:00 GMT&amp;quot;&amp;nbsp;in the list.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My problem is that I want my aspx page requests - not just ones that originate from javascript - to have the&amp;nbsp;&amp;quot;If-Modified-Since&amp;quot; request header set to an old date. Stated another way, I want all my pages to come back with the &amp;quot;If-Modified-Since&amp;quot; value in the Header&amp;#39;s collection &amp;nbsp;set to some date (i.e. &amp;quot;Sat, 1 Jan 2000 00:00:00 GMT&amp;quot;) that will ensure that the page gets served from the server vs. cache.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Having javascript requests under control, I now need to do the same for all my aspx pages. Here is what I have tried in my code behind.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="position:absolute;left:-10000px;top:78px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/div&gt;
&lt;div style="position:absolute;left:-10000px;top:78px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden;" id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.AddHeader(&amp;quot;Last-Modified&amp;quot;, &amp;quot;Sat, 1 Jan 2000 00:00:00 GMT&amp;quot;)&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.AddHeader(&amp;quot;Last-Modified&amp;quot;, &amp;quot;Sat, 1 Jan 2000 00:00:00 GMT&amp;quot;)&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Response.AddHeader(&amp;quot;If-Modified-Since&amp;quot;, &amp;quot;Sat, 1 Jan 2000 00:00:00 GMT&amp;quot;)&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;&lt;div&gt;&lt;div&gt;Neither of the options above produce&amp;nbsp;the &amp;quot;If-Modified-Since&amp;quot; value in the request&amp;#39;s header.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyone have an idea what I am doing wrong?&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Response Type for 3gp file</title><link>http://forums.asp.net/thread/3212413.aspx</link><pubDate>Fri, 05 Jun 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3212413</guid><dc:creator>nareshprakash</dc:creator><description>&lt;p&gt;I want to send response to mobile. My file type is 3gp.&lt;/p&gt;
&lt;p&gt;Which contenttype is support in asp.net 2005 to send response stream to mobile&lt;/p&gt;</description></item><item><title>Open file in a new tab (via WriteFile)</title><link>http://forums.asp.net/thread/3127753.aspx</link><pubDate>Wed, 29 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3127753</guid><dc:creator>Hanfwurst</dc:creator><description>&lt;p&gt;&amp;nbsp;Hello everyone.&lt;br /&gt;&lt;br /&gt;Here is my problem: I&amp;#39;m opening a .pdf file in the browser via Response.WriteFile. It works perfectly fine! But now I&amp;#39;d like to open that file in a new tab (a new window would work too, but I&amp;#39;d rather have it in a new tab). How can this be achieved? Here is my code snippet:&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;1    &lt;/b&gt;        &lt;span class="kwd"&gt;protected void&lt;/span&gt; SpezE_Click(&lt;span class="kwd"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;&lt;b id="2"&gt;2    &lt;/b&gt;        {&lt;br /&gt;&lt;b id="3"&gt;3    &lt;/b&gt;&lt;br /&gt;&lt;b id="4"&gt;4    &lt;/b&gt;            &lt;span class="kwd"&gt;string&lt;/span&gt; finalerPfad = Pfad + myFileName;&lt;br /&gt;&lt;b id="5"&gt;5    &lt;/b&gt;            &lt;span class="kwd"&gt;string&lt;/span&gt; fileLength;&lt;br /&gt;&lt;b id="6"&gt;6    &lt;/b&gt;            FileInfo myFileInfo = &lt;span class="kwd"&gt;new&lt;/span&gt; FileInfo(finalerPfad);&lt;br /&gt;&lt;b id="7"&gt;7    &lt;/b&gt;            fileLength = myFileInfo.Length.ToString();&lt;br /&gt;&lt;b id="8"&gt;8    &lt;/b&gt;&lt;br /&gt;&lt;b id="9"&gt;9    &lt;/b&gt;            Response.Clear();&lt;br /&gt;&lt;b id="10"&gt;10   &lt;/b&gt;&lt;br /&gt;&lt;b id="11"&gt;11   &lt;/b&gt;            Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Accept-Ranges&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;ascii&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="12"&gt;12   &lt;/b&gt;            Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Content-Length&amp;quot;&lt;/span&gt;, fileLength);&lt;br /&gt;&lt;b id="13"&gt;13   &lt;/b&gt;            Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;post-check=0, pre-check=0&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="14"&gt;14   &lt;/b&gt;            Response.ContentType = &lt;span class="st"&gt;&amp;quot;application/pdf&amp;quot;&lt;/span&gt;;&lt;br /&gt;&lt;b id="15"&gt;15   &lt;/b&gt;            Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Content-Disposition&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;inline; filename=\&amp;quot;&amp;quot; + myFileName2 + &amp;quot;&lt;/span&gt;\&lt;span class="st"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="16"&gt;16   &lt;/b&gt;            Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Cache-Control&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;no-store, no-cache, must-revalidate&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="17"&gt;17   &lt;/b&gt;            Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Pragma&amp;quot;&lt;/span&gt;, &lt;span class="st"&gt;&amp;quot;no-cache&amp;quot;&lt;/span&gt;);&lt;br /&gt;&lt;b id="18"&gt;18   &lt;/b&gt;&lt;br /&gt;&lt;b id="19"&gt;19   &lt;/b&gt;            Response.Flush();&lt;br /&gt;&lt;b id="20"&gt;20   &lt;/b&gt;            Response.WriteFile(finalerPfad);&lt;br /&gt;&lt;b id="21"&gt;21   &lt;/b&gt;            Response.End();&lt;br /&gt;&lt;b id="22"&gt;22   &lt;/b&gt;        }&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;EDIT: I don&amp;#39;t know now, if I accidentally posted this Tread into the &amp;quot;Get Started&amp;quot; section or if it &amp;quot;got moved&amp;quot; here. Sorry if it&amp;#39;s in the wrong section.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind Regards&lt;br /&gt;&lt;br /&gt;Hanfwurst &lt;br /&gt;</description></item><item><title>Software to see request/response</title><link>http://forums.asp.net/thread/3090551.aspx</link><pubDate>Wed, 15 Apr 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3090551</guid><dc:creator>hansi</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;d like to see requestes and responses for my application that is running on localhost. Could you please recommend me any software for that?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>PNG Image to stream to HTTP Response problem</title><link>http://forums.asp.net/thread/3036567.aspx</link><pubDate>Wed, 25 Mar 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3036567</guid><dc:creator>fraserhardy</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have an asp.net 3.5 page which depending on a string passed to it, retrieves an image from a URL. I then need to pass this image back via a HTTP Response.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;the code I have is:&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;b id="1"&gt;&lt;/b&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;Dim&lt;/span&gt; wr &lt;span class="kwd"&gt;As&lt;/span&gt; WebRequest = WebRequest.Create(URL)
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; wre &lt;span class="kwd"&gt;As&lt;/span&gt; WebResponse = wr.GetResponse

        &lt;span class="kwd"&gt;Dim&lt;/span&gt; ms &lt;span class="kwd"&gt;As&lt;/span&gt; Stream = wre.GetResponseStream

        &lt;span class="kwd"&gt;Dim&lt;/span&gt; streamreader &lt;span class="kwd"&gt;As&lt;/span&gt; StreamReader = &lt;span class="kwd"&gt;New&lt;/span&gt; StreamReader(ms)
        Response.ContentType = &lt;span class="st"&gt;&amp;quot;image/png&amp;quot;&lt;/span&gt;
        Response.AddHeader(&lt;span class="st"&gt;&amp;quot;Content-Length&amp;quot;&lt;/span&gt;, wre.ContentLength.ToString)
        Response.Write(streamreader.ReadToEnd)&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;Problem I am having is that I get an image not vaild message in my browser. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Any advice would be greatly apreciated.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards, &lt;/p&gt;&lt;p&gt;Fraser&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>HttpContext.Current.ApplicationInstance.CompleteRequest() vs Response.End()</title><link>http://forums.asp.net/thread/2939803.aspx</link><pubDate>Fri, 13 Feb 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2939803</guid><dc:creator>tomliversidge</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am confused as to the best way of ending requests. Two functions in my web application send content to the browser - PDF generation from database content and sending files on the server to the browser. I have read about the various options but am still not sure about which is best to use. The Response.End generates a ThreadAbortException. What impact does this have on an application? (it is not being called within a Try Catch block). Using HttpContext.Current.ApplicationInstance.CompleteRequest() doesn&amp;#39;t throw the exception, but still executes the rest of the page events, which could cause problems. &lt;/p&gt;&lt;p&gt;see http://www.c6software.com/CodeSolutions/dotnet/ThreadAbortException.aspx&lt;br /&gt;also http://www.sagara.net/post/2008/04/05/ResponseRedirect-and-the-ThreadAbortException-and-why-ite28099s-a-good-thing.aspx&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I guess my question is, is it safe to have ThreadAbortExceptions thrown in my application? What impact is this likely to have? &lt;/p&gt;&lt;p&gt;Thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Response.End causing user to sign out of website?</title><link>http://forums.asp.net/thread/2877612.aspx</link><pubDate>Mon, 19 Jan 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2877612</guid><dc:creator>silverCORE</dc:creator><description>Hi, I have an asp.net 2.0 website hosted at DiscountASp and I have this webpage that does the typical Response.WriteFile and Response.End to present the user with the download file dialog box. 
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;but sometimes it seems to be causing the user to be signed out of the application...with the whole &amp;quot;ReturnUrl&amp;quot; parameter on the query string.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;has anyone had this problem, or is there a way around it?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;I also tried changing response.End for HttpContext...CompleteRequest, but no luck, it keeps hapenning.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;any help or ideas are greatly appreciated, thanks.&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to measure the HTTPResponse size before it is sent to the browser ?</title><link>http://forums.asp.net/thread/2829895.aspx</link><pubDate>Wed, 24 Dec 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2829895</guid><dc:creator>Yovav</dc:creator><description>&lt;p&gt;&lt;font face="arial,helvetica,sans-serif" color="#000066"&gt;Dear all.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="arial,helvetica,sans-serif" color="#000066"&gt;I&amp;#39;m working on a HTTP compression module and I wonder how can I detect the size of the page content befiore I compress it,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="arial,helvetica,sans-serif" color="#000066"&gt;So for example - I can choose to only compress pages with content smaller than 5Kb&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="arial,helvetica,sans-serif" color="#000066"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font face="arial,helvetica,sans-serif" color="#000066"&gt;Any ideas ?&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>