<?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>Httpcontext.current.User.Identity.Name is null </title><link>http://forums.asp.net/thread/3529774.aspx</link><pubDate>Tue, 24 Nov 2009 10:32:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3529774</guid><dc:creator>hari4u</dc:creator><author>hari4u</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3529774.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3529774</wfw:commentRss><description>&lt;p&gt;Hello all, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I&amp;#39;m using SQlmembership provider and login control&amp;nbsp;in my application. &lt;/p&gt;&lt;pre class="c-sharp" name="code"&gt;The code behind is as below:&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class="c-sharp" name="code"&gt;protected void Login1_Authenticate1(object sender, AuthenticateEventArgs e)
        {
            bool authenticate;
            authenticate = ValidateUser(Login1.UserName, Login1.Password);
            if (authenticate)
            {
                if (Authorized(&amp;quot;emprule&amp;quot;))
                {
                    string s= HttpContext.Current.User.Identity.Name;
                    Response.Redirect(&amp;quot;~/WebForm1.aspx&amp;quot;);
                }

            }
            else
                Response.Write(&amp;quot;Login failed&amp;quot;);
        }
        public static bool ValidateUser(string Username,string Password)
        {
            Boolean bauthenticated = false;
            bauthenticated = Membership.ValidateUser(Username,Password);
            if (!bauthenticated)
                return false;
            IIdentity identity;
            identity = new GenericIdentity(Username, Membership.Provider.Name);
            
            // TODO: Get Roles
            string[] roles = Roles.GetRolesForUser(identity.Name);
            IPrincipal principal = new GenericPrincipal(identity, roles);

            // Place user&amp;#39;s principal on the thread
             Thread.CurrentPrincipal = principal;

             HttpContext.Current.User = principal;

             return bauthenticated;
        }

        public static bool Authorized(string rule)
        {
            bool authorized = false;

            // TODO: Check rule-base authorization
            // No parameter passed to GetAuthorizationProvider method as 
            // we&amp;#39;ll set the defaultAuthorizationInstance in App.config.
            IAuthorizationProvider ruleProvider;
            ruleProvider = AuthorizationFactory.GetAuthorizationProvider();
            
            authorized = ruleProvider.Authorize(Thread.CurrentPrincipal, rule);
            
            return authorized;
        }
&lt;/pre&gt;
&lt;p&gt;I&amp;#39;m getting the Httpcontext.current.user.identity.name value in this page, &lt;/p&gt;
&lt;p&gt;But when i redirect&amp;nbsp;to other&amp;nbsp;page and try to the get same &lt;/p&gt;
&lt;p&gt;I&amp;#39;m getting null value. &lt;/p&gt;
&lt;p&gt;Can anyone please help me with this.&lt;/p&gt;
&lt;p&gt;Thanks, &lt;/p&gt;
&lt;p&gt;Hari&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>everything but that %20</title><link>http://forums.asp.net/thread/3531109.aspx</link><pubDate>Wed, 25 Nov 2009 00:29:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3531109</guid><dc:creator>FunnyHowIHateThis</dc:creator><author>FunnyHowIHateThis</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3531109.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3531109</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i&amp;#39;m not wanting to venture into modules and rewrite, unless&amp;nbsp;of course I&amp;#39;m&amp;nbsp; delusional about ServerUtility, UrlEncode&amp;nbsp;or UrlDecode&lt;/p&gt;
&lt;p&gt;I know that nothing is simple but dang i just want the passed querystring&amp;nbsp; to be free of %20 and be a &amp;quot;+&amp;quot; or a &amp;quot;-&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;javascript url looks good to me too&lt;/p&gt;
&lt;p&gt;so anyhelp that doesn&amp;#39;t contain a link would be great. Or the c# code to redirect 404 would work hey&amp;nbsp;it&amp;#39;s all&amp;nbsp;&amp;nbsp;about can we just get this done&lt;/p&gt;</description></item><item><title>request.url.absoluteuri</title><link>http://forums.asp.net/thread/3451964.aspx</link><pubDate>Sat, 10 Oct 2009 23:38:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3451964</guid><dc:creator>geoffish</dc:creator><author>geoffish</author><slash:comments>7</slash:comments><comments>http://forums.asp.net/thread/3451964.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3451964</wfw:commentRss><description>&lt;p&gt;I have some c# code in global.asax:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;Application_PreSendRequestHeaders
{
Uri myuri = new Uri(Request.Url.AbsoluteUri)
//Do Some functions
}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;The problem is that Request.Url.AbsoluteUri is returning &amp;quot;http://www.somesite.com/default.aspx&amp;quot; , when the Url in the client&amp;#39;s browser looks like &amp;quot;http://www.somesite.com/&amp;quot;. This small diffrence is causing a redirect loop. If you really need to see my code(instead of &amp;#39;do some functions&amp;#39;) for some reason, I&amp;#39;ll post it later.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item><item><title>is it possible to modify request headers are redirect response to a different page</title><link>http://forums.asp.net/thread/3527861.aspx</link><pubDate>Mon, 23 Nov 2009 13:00:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527861</guid><dc:creator>san123</dc:creator><author>san123</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3527861.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3527861</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;is it possible to modify request headers are redirect response to a different page.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to hide some query strings in a url rewrite</title><link>http://forums.asp.net/thread/3528901.aspx</link><pubDate>Mon, 23 Nov 2009 22:52:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528901</guid><dc:creator>elbasha</dc:creator><author>elbasha</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3528901.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3528901</wfw:commentRss><description>&lt;p&gt;I have the following code:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rewrite
url=&amp;quot;Category-(.+)-(.+)-(.+)-(.+)$&amp;quot;
to=&amp;quot;~/Category.aspx?MCatID=$1&amp;amp;amp;MCatName=$2&amp;amp;amp;SCatID=$3&amp;amp;amp;SCatName=$4&amp;quot;/&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rewrite url=&amp;quot;Category-(.+)-(.+)$&amp;quot; to=&amp;quot;~/Category.aspx?MCatID=$1&amp;amp;amp;MCatName=$2&amp;quot;/&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I want to change it so that only the MCatName and SCatName show up, is it possible? I tried a couple of ways but didn&amp;#39;t seem to work out.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Accessing and removing existing http headers in PostRequestHandlerExecute</title><link>http://forums.asp.net/thread/3527550.aspx</link><pubDate>Mon, 23 Nov 2009 09:56:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527550</guid><dc:creator>tristan_c</dc:creator><author>tristan_c</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3527550.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3527550</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I would like to access the headers collection in a custom&amp;nbsp;&lt;font size="2"&gt;PostRequestHandlerExecute module. The problem is that on attempting to even access the headers, I get a &lt;em&gt;This operation requires IIS integrated pipeline mode&lt;/em&gt; error. I&amp;#39;m using asp.net 2.0 and IIS 6 and don&amp;#39;t have the option to use an integrated pipeline mode as far as I can tell.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Here is example syntax giving rise to the error:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;
&lt;p&gt;app.Context.Response.Write(requestContext.Response.Headers.Count);&lt;/p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas how to successfully access the headers using a &lt;font size="2"&gt;PostRequestHandlerExecute module? I can of course add headers back in the asp.net page but my goal here is to examine or even strip headers.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Finally, apologies if this has already been answered but I can&amp;#39;t find a suitable answer specific to IIS6/.Net 2.0.&lt;/p&gt;
&lt;p&gt;Many Thanks,&lt;/p&gt;
&lt;p&gt;TC&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>I have more than 1 rewrite that start with the same directory, how to fix?</title><link>http://forums.asp.net/thread/3526866.aspx</link><pubDate>Mon, 23 Nov 2009 03:11:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526866</guid><dc:creator>elbasha</dc:creator><author>elbasha</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3526866.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3526866</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have the following problem, on my category page, it will either be:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rewrite url=&amp;quot;Category-(.+)-(.+)&amp;quot; to=&amp;quot;~/Category.aspx?MCatID=$1&amp;amp;amp;MCatName=$2&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;rewrite url=&amp;quot;Category-(.+)-(.+)-(.+)-(.+)&amp;quot; to=&amp;quot;~/Category.aspx?MCatID=$1&amp;amp;amp;MCatName=$2&amp;amp;amp;SCatID=$3&amp;amp;amp;SCatName=$4&amp;quot;/&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now how do I go about fixing this problem? The urlrewriter.net for some reason you can&amp;#39;t have more than 1 rewrite that has the same name/value.&amp;nbsp; How can I make this into one? If I delete the top one then I would get an error if there are only 2 querystrings.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to get Virtual Path?</title><link>http://forums.asp.net/thread/446628.aspx</link><pubDate>Sun, 18 Jan 2004 07:04:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:446628</guid><dc:creator>dragon_ballz96</dc:creator><author>dragon_ballz96</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/446628.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=446628</wfw:commentRss><description>Hi,
&lt;br /&gt;

&lt;br /&gt;
   Have been searching via MSDN and I have found this HttpConfigurationContext.VirtualPath property under namespace of System.Web.Configuration. Tried to get the path using the following:
&lt;br /&gt;

&lt;br /&gt;
Dim strPath As String
&lt;br /&gt;
Dim test As HttpConfigurationContext
&lt;br /&gt;
strPath = test.VirtualPath.ToString
&lt;br /&gt;

&lt;br /&gt;
   But it gaves an object reference error in this case. Does anyone know how to declare and get the value properly? Thks.
&lt;br /&gt;

&lt;br /&gt;
Rgds
&lt;br /&gt;
Ryan
&lt;br /&gt;

&lt;br /&gt;
</description></item><item><title>generated dynamic aspx page by using httphandler</title><link>http://forums.asp.net/thread/3526265.aspx</link><pubDate>Sun, 22 Nov 2009 12:27:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526265</guid><dc:creator>robertleeyan</dc:creator><author>robertleeyan</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3526265.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3526265</wfw:commentRss><description>&lt;p&gt;&lt;span id="result_box"&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;i use httphander dynamically generated urlLogin.aspx page,On my development computer to access (&lt;a href="http://localhost:4017/ishow/urlLogin.aspx?login_name=111"&gt;http://localhost:4017/ishow/urlLogin.aspx?login_name=111&lt;/a&gt;) entirely correctly, when I was&amp;nbsp;publisher this site&amp;nbsp;to the server, access&amp;nbsp;&amp;nbsp;(&lt;a href="http://localhost/ishow/urlLogin.aspx?login_name=111"&gt;http://localhost/ishow/urlLogin.aspx?login_name=111&lt;/a&gt;) can not find the page. why... please help me tks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;web config&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;&amp;lt;httpHandlers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove verb=&amp;quot;*&amp;quot; path=&amp;quot;*.asmx&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add verb=&amp;quot;*&amp;quot; path=&amp;quot;urlLogin.aspx&amp;quot; type=&amp;quot;MicetLogical.urlLogin.urlLoginHandler, MicetLogical&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/httpHandlers&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;my pc &lt;span id="result_box"&gt;&lt;span style="BACKGROUND-COLOR:#fff;"&gt;Environment&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;winxp&amp;nbsp;iis5.1 vs2005&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;server &lt;span id="result_box"&gt;&lt;span style="BACKGROUND-COLOR:#fff;"&gt;Environment&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style="BACKGROUND-COLOR:#ebeff9;"&gt;win server2003 iis6.0 .net framework2.0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Help rewriting base URL folders</title><link>http://forums.asp.net/thread/3524590.aspx</link><pubDate>Fri, 20 Nov 2009 18:49:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524590</guid><dc:creator>hillb</dc:creator><author>hillb</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3524590.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3524590</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been scouring the net for an answer to this, and haven&amp;#39;t found an answer yet. This should, I&amp;nbsp;would think, be fairly simple.&lt;/p&gt;
&lt;p&gt;I have a website running on IIS7 at &lt;a href="http://www.somesite.net"&gt;www.somesite.net&lt;/a&gt;. I want to set up URL rewriting so that I can have &lt;a href="http://www.somesite.net/object1"&gt;www.somesite.net/object1&lt;/a&gt; map to &lt;a href="http://www.somesite.net/objectviewer.aspx?i=object1"&gt;www.somesite.net/objectviewer.aspx?i=object1&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All of the references I have found online refer to rewriting URL&amp;#39;s another level down, such as &lt;a href="http://www.somesite.net/object/object1"&gt;www.somesite.net/object/object1&lt;/a&gt;, where the /object/ folder can be used to establish a regex match, but I need to actually accomplish this at the root level.&lt;/p&gt;
&lt;p&gt;As an added twist, this obviously should NOT try to remap certain objects that actually exist in the root, such as objectviewer.aspx itself, or the /images/ or /css/ folders.&lt;/p&gt;
&lt;p&gt;Has anyone done this? I thought it would be fairly straightforward, and I CAN get&amp;nbsp;URL rewriting to work fine if I&amp;nbsp;go another level down, but I invariably just end up with 404&amp;#39;s if I try to apply it at the root.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Embedded Resource - "This is an invalid webresource request."</title><link>http://forums.asp.net/thread/1381213.aspx</link><pubDate>Sat, 26 Aug 2006 00:27:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1381213</guid><dc:creator>jeffkretz</dc:creator><author>jeffkretz</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/1381213.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=1381213</wfw:commentRss><description>&lt;p&gt;This is my first time in dealing with embedded resources, so I&amp;#39;m sure I&amp;#39;m just doing something wrong.&lt;/p&gt;&lt;p&gt;I have a javascript file in my VS 2005 project file, which I&amp;#39;ve set for Build Action --&amp;gt; Embedded Resource.&lt;/p&gt;&lt;p&gt;Then, to ensure I would name the resource correctly, I used the:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Assembly.GetManifestResourceNames() &lt;/strong&gt;to get the precise resource names in the file.&lt;/p&gt;&lt;p&gt;One of these was &amp;quot;Topaz.Javascript.AjaxConn.js&amp;quot;.&lt;/p&gt;&lt;p&gt;So I added this attribute to the AssemblyInfo.cs:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;[assembly: WebResource(&amp;quot;Topaz.Javascript.AjaxConn.js&amp;quot;, &amp;quot;text/javascript&amp;quot;)]&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;And my page uses this code:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;if (Assm.GetManifestResourceInfo(&amp;quot;Topaz.Javascript.AjaxConn.js&amp;quot;)==null)&lt;br /&gt;&amp;nbsp;throw new Exception(&amp;quot;The resource could not be found.&amp;quot;);&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;string resource = this.ClientScript.GetWebResourceUrl(this.GetType(), &amp;quot;Topaz.Javascript.AjaxConn.js&amp;quot;);&lt;br /&gt;this.ClientScript.RegisterClientScriptInclude(&amp;quot;Topaz.Javascript.AjaxConn.js&amp;quot;, resource);&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The page renders the include as:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;lt;script src=&amp;quot;/WebResource.axd?d=VN0sC0vng-8704Qafmpaw7fc6RWl2EYakKsJpu0PSPldWOMAJ0rNrn2D0QMAovDw0&amp;amp;amp;t=632921217899531250&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;HOWEVER, the resource is not actually found and the javascript methods are not available to me.&lt;/p&gt;&lt;p&gt;If I type the url in directly:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;/WebResource.axd?d=VN0sC0vng-8704Qafmpaw7fc6RWl2EYakKsJpu0PSPldWOMAJ0rNrn2D0QMAovDw0&amp;amp;amp;t=632921217899531250&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I get a 404 &amp;quot;The resource cannot be found error&amp;quot;.&lt;/p&gt;&lt;p&gt;If I trap the application error, I get a &amp;quot;This is an invalid webresource request.&amp;quot; error.&lt;/p&gt;&lt;p&gt;Does anyone have some advice for what I may be doing wrong?&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;JK&lt;/p&gt;</description></item><item><title>Clearing out all the URL Rewrite before adding the new rewrite</title><link>http://forums.asp.net/thread/3523023.aspx</link><pubDate>Fri, 20 Nov 2009 02:53:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523023</guid><dc:creator>elbasha</dc:creator><author>elbasha</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3523023.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3523023</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I have a problem:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rewrite url=&amp;quot;~/Category/(.+)&amp;quot; to=&amp;quot;~/Category.aspx?MCatID=$1&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If someone goes there, it will be like: site.com/Category/32&lt;/p&gt;&lt;p&gt;So then they go to the home page which is:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rewrite url=&amp;quot;~/Home&amp;quot; to=&amp;quot;~/Index.aspx&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The problem now is that the site willl go to: site.com/Category/Home&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;How do I fix this problem? &lt;/p&gt;&lt;p&gt;Also, all my asp images start with =&amp;quot;~/images&amp;quot;, but when there is a .com/category/21, if there is a forward slash after category or any other item in there, my images stop working.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Problem Adding module to in iis 6 for xml files</title><link>http://forums.asp.net/thread/3520514.aspx</link><pubDate>Wed, 18 Nov 2009 21:18:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3520514</guid><dc:creator>twathaify</dc:creator><author>twathaify</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3520514.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3520514</wfw:commentRss><description>&lt;p&gt;Dears,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve configured a new HTTP Module in my Project to handle requests for xml files on my machine which has iis 5 installed on it, and its working just fine, after adding the &amp;quot;.xml&amp;quot; to the asp_isapi.dll to the iis 5.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but when I tried to deploy it to our Production server which has windows server 2003 and IIS 6 installed on it, I get the folowing errer when I try to browse XML file:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;INTERNET EXPLORER CANNOT DISPLAY THE WEB PAGE&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Request QueryString in VB.NET with URL Rewrite</title><link>http://forums.asp.net/thread/3522959.aspx</link><pubDate>Fri, 20 Nov 2009 01:13:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522959</guid><dc:creator>elbasha</dc:creator><author>elbasha</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3522959.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3522959</wfw:commentRss><description>&lt;p&gt;I have a URL rewrite as follows:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;rewrite url=&amp;quot;~/Category/(.+)&amp;quot; to=&amp;quot;~/Category.aspx?MCatID==$1&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now how do I do it in VB.NET when the page loads to receive the categoryID?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ImageButton not loading images with URL Rewrite</title><link>http://forums.asp.net/thread/3522954.aspx</link><pubDate>Fri, 20 Nov 2009 01:09:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522954</guid><dc:creator>elbasha</dc:creator><author>elbasha</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3522954.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3522954</wfw:commentRss><description>&lt;p&gt;Some pictures load up and others don&amp;#39;t, it is completely random, the image location is correct though the pictures do not all show up as they used to before I added the URL Rewrite&lt;br /&gt;&lt;/p&gt;</description></item><item><title>URL Rewrite, how to do it without access to IIS</title><link>http://forums.asp.net/thread/3522546.aspx</link><pubDate>Thu, 19 Nov 2009 19:02:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522546</guid><dc:creator>elbasha</dc:creator><author>elbasha</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3522546.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3522546</wfw:commentRss><description>&lt;p&gt;I am hosting a website in a hosting company where I don&amp;#39;t have access to any IIS features, how can I add URL Rewrite to my site? How would I add the module, can I add the module by simply going to my VS 2008 and clicking add reference? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Access on a certain page, url from other site.?</title><link>http://forums.asp.net/thread/3521779.aspx</link><pubDate>Thu, 19 Nov 2009 11:48:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521779</guid><dc:creator>chrizztheone</dc:creator><author>chrizztheone</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3521779.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3521779</wfw:commentRss><description>&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I have a page that I want to grant access if the users come from a certains adress ex: &lt;a href="http://www.43i89435.com/page.asp"&gt;http://www.43i89435.com/page.asp&lt;/a&gt;, all traffic from this site can access a page on my server, is it possible, dont wont any password or login, or can i implement login/password in a url&lt;/p&gt;
&lt;p&gt;ex. &lt;a href="http://www.mysite.com/page.aspx?usernamne:password"&gt;http://www.mysite.com/page.aspx?usernamne:password&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Chrizz&lt;/p&gt;</description></item><item><title>Custom httphandler uploading a gzip file</title><link>http://forums.asp.net/thread/3518485.aspx</link><pubDate>Tue, 17 Nov 2009 21:30:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3518485</guid><dc:creator>calkenn</dc:creator><author>calkenn</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3518485.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3518485</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to write a service that will upload a gzip file to a server. &amp;nbsp;However, when i save the gzip file on the server it&amp;#39;s no longer recognized as a gzip file and it&amp;#39;s much larger than the original file. &amp;nbsp;The original file was approx 2K and the uploaded version was almost 4K.&lt;/p&gt;&lt;p&gt;Post code &amp;nbsp; - help from&amp;nbsp;&lt;a href="http://stackoverflow.com/questions/219827/multipart-forms-from-c-client"&gt;http://stackoverflow.com/questions/219827/multipart-forms-from-c-client&lt;/a&gt;:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;string contents = File.ReadAllText(fileupload.PostedFile.FileName);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HttpWebRequest req = null;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;req&amp;nbsp;&amp;nbsp;= (HttpWebRequest)HttpWebRequest.Create(&amp;quot;http://localhost/test/test.ashx&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;req&amp;nbsp;.ContentType = &amp;quot;multipart/form-data; boundary=&amp;quot; + PostData.boundary; &amp;nbsp; //boundary = ---------------------------AaB03x&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;req&amp;nbsp;.Method = &amp;quot;POST&amp;quot;;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PostData pData = new PostData();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Encoding encoding = Encoding.UTF8;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Stream stream = null;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;Id&amp;quot;, &amp;quot;123&amp;quot;, PostDataParamType.Field));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;unit&amp;quot;, &amp;quot;10&amp;quot;, PostDataParamType.Field));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;typeId&amp;quot;, &amp;quot;1&amp;quot;, PostDataParamType.Field));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;filename&amp;quot;, fileupload.FileName.ToString(), PostDataParamType.Field));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;fileupload&amp;quot;,fileupload.FileName.ToString(),contents,PostDataParamType.File));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] buffer = encoding.GetBytes(pData.GetPostData());&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;req.ContentLength = buffer.Length;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stream = req.GetRequestStream();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stream.Write(buffer, 0, buffer.Length);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stream.Close();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HttpWebResponse response = (HttpWebResponse)req.GetResponse();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;longitude&amp;quot;, &amp;quot;-76.4921829&amp;quot;, PostDataParamType.Field));&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; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;deviceId&amp;quot;, &amp;quot;NOMNOMNOMNOMNOMNOMNOMNOMNOMNOM&amp;quot;, PostDataParamType.Field));&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; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;time&amp;quot;, &amp;quot;1258400855.4&amp;quot;, PostDataParamType.Field));&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; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;filename&amp;quot;, fuUpload.FileName.ToString(), PostDataParamType.Field));&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; &amp;nbsp; &amp;nbsp;pData.Params.Add(new PostDataParam(&amp;quot;fileupload&amp;quot;,fuUpload.FileName.ToString(),fileContents,PostDataParamType.File));&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; &amp;nbsp; &amp;nbsp;//pData.Params.Add(new PostDataParam(&amp;quot;fileupload&amp;quot;, &amp;quot;filename.txt&amp;quot;, &amp;quot;filecontents&amp;quot; PostDataParamType.File));&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; &amp;nbsp; &amp;nbsp;/* ... set the parameters, read files, etc. IE:&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; pData.Params.Add(new PostDataParam(&amp;quot;email&amp;quot;, &amp;quot;example@example.com&amp;quot;, PostDataParamType.Field));&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; pData.Params.Add(new PostDataParam(&amp;quot;fileupload&amp;quot;, &amp;quot;filename.txt&amp;quot;, &amp;quot;filecontents&amp;quot; PostDataParamType.File));&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] buffer = encoding.GetBytes(pData.GetPostData());&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oRequest.ContentLength = buffer.Length;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oStream = oRequest.GetRequestStream();&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; &amp;nbsp; &amp;nbsp;oStream.Write(buffer, 0, buffer.Length);&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; &amp;nbsp; &amp;nbsp;oStream.Close();&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HttpWebResponse oResponse = (HttpWebResponse)oRequest.GetResponse();&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;GetPostData:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string GetPostData()&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;StringBuilder sb = new StringBuilder();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (PostDataParam p in m_Params)&lt;/p&gt;&lt;p&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine(&amp;quot;--&amp;quot; + boundary);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (p.Type == PostDataParamType.File)&lt;/p&gt;&lt;p&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine(string.Format(&amp;quot;Content-Disposition: file; name=\&amp;quot;{0}\&amp;quot;; filename=\&amp;quot;{1}\&amp;quot;&amp;quot;, p.Name, p.FileName));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine(&amp;quot;Content-Type: application/octet-stream&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine(p.Value);&lt;/p&gt;&lt;p&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;&lt;p&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine(string.Format(&amp;quot;Content-Disposition: form-data; name=\&amp;quot;{0}\&amp;quot;&amp;quot;, p.Name));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sb.AppendLine(p.Value);&lt;/p&gt;&lt;p&gt;&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; &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;sb.AppendLine(&amp;quot;--&amp;quot; + boundary + &amp;quot;--&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return sb.ToString();&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;Server httphandler code:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void ProcessRequest(HttpContext context)&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;&amp;nbsp;if (context.Request.Files.Count &amp;gt; 0)&lt;/p&gt;&lt;p&gt;&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; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&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;context.Response.Clear();&lt;/p&gt;&lt;p&gt;&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;string fileSubmitPath = ConfigurationManager.AppSettings[&amp;quot;SUBMIT&amp;quot;].ToString();&lt;/p&gt;&lt;p&gt;&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;filename = &amp;quot;Report&amp;quot;;&lt;/p&gt;&lt;p&gt;&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;context.Request.Files[0].SaveAs(fileSubmitPath + filename + &amp;quot;.gz&amp;quot;);&lt;/p&gt;&lt;p&gt;&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; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>help with HttpHandler and Response -&gt; forcing Response to write to page but not to end it...</title><link>http://forums.asp.net/thread/3521282.aspx</link><pubDate>Thu, 19 Nov 2009 07:56:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521282</guid><dc:creator>dKorpar</dc:creator><author>dKorpar</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3521282.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3521282</wfw:commentRss><description>&lt;p&gt;I need behaviour like in php so that I can execute some code show it to user, but page will continue loading and if another work is done it writes some more data...&lt;/p&gt;&lt;p&gt;for example&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;for (int i = 1; i &amp;lt;= 10; i++)
            {
                context.Response.Write(&amp;quot;&amp;quot; + i.ToString() + &amp;quot;&amp;lt;br&amp;gt;&amp;quot;);

                //context.Response.WriteSubstitution(
                System.Threading.Thread.Sleep(1000);
            }&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; this code will have execution time of 10+secs and then it will write all in few milliseconds...&lt;/p&gt;&lt;p&gt;I want different behaviour...&lt;/p&gt;&lt;p&gt;I want that in 1st second I get wroted on page 1 &lt;/p&gt;&lt;p&gt;then 1sec nothing and then again 2 and so on...&lt;/p&gt;&lt;p&gt;I should probably rewrite Response or is there any way?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Please help! how to post some data using http post</title><link>http://forums.asp.net/thread/3521088.aspx</link><pubDate>Thu, 19 Nov 2009 06:14:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521088</guid><dc:creator>Lasar</dc:creator><author>Lasar</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3521088.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3521088</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to post my details to epn and I need to get back the response from epn.&lt;br /&gt;
I using http post and http request for that. The problem is that the
string I post is not in correct as to read by epn. I am get the
response as &amp;quot;&lt;b&gt;UIncomplete information - ePNAccoun&lt;/b&gt;t&amp;quot; . Because the epn
&lt;b&gt;can&amp;#39;t able to read&lt;/b&gt; the &amp;quot;ePNAccount&amp;quot; which I posted.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is the sample code of what I tried,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_str = &amp;quot;&amp;lt;input type=&amp;#39;hidden&amp;#39; name=&amp;#39;ePNAccount&amp;#39;
value=&amp;#39;12345&amp;#39; /&amp;gt;&amp;lt;INPUT TYPE=&amp;#39;HIDDEN&amp;#39; NAME=&amp;#39;FirstName&amp;#39; VALUE=&amp;#39;Ram&amp;#39;
/&amp;gt;&amp;lt;INPUT TYPE=&amp;#39;HIDDEN&amp;#39; NAME=&amp;#39;LastName&amp;#39; VALUE=&amp;#39;xxx&amp;#39; /&amp;gt;&amp;lt;INPUT
TYPE=&amp;#39;HIDDEN&amp;#39; NAME=&amp;#39;CardNo&amp;#39; VALUE=&amp;#39;3447678575674444&amp;#39; /&amp;gt;&amp;lt;INPUT
TYPE=&amp;#39;HIDDEN&amp;#39; NAME=&amp;#39;ExpMonth&amp;#39; VALUE=&amp;#39;5&amp;#39; /&amp;gt;&amp;lt;INPUT TYPE=&amp;#39;HIDDEN&amp;#39;
NAME=&amp;#39;ExpYear&amp;#39; VALUE=&amp;#39;09&amp;#39; /&amp;gt;&amp;lt;INPUT TYPE=&amp;#39;HIDDEN&amp;#39; NAME=&amp;#39;Total&amp;#39;
VALUE=&amp;#39;456&amp;#39; /&amp;gt;&amp;lt;INPUT TYPE=&amp;#39;HIDDEN&amp;#39; NAME=&amp;#39;Address&amp;#39;
VALUE=&amp;#39;12,sdfdfdf&amp;#39; /&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim uri As New Uri(&amp;quot;https://www.eProcessingNetwork.Com/cgi-bin/tdbe/transact.pl&amp;quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim request As Net.HttpWebRequest = Net.HttpWebRequest.Create(Uri)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.Method = Net.WebRequestMethods.Http.Post&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.AllowAutoRedirect = True&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.ContentType = &amp;quot;Application / x - www - Form - urlencoded&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request.ContentLength = data_str.Length&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sw As New StreamWriter(request.GetRequestStream)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw.Write(data_str)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sw.Close()&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oResponse As Net.HttpWebResponse = request.GetResponse()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim reader As New StreamReader(oResponse.GetResponseStream())&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tmp As String = reader.ReadToEnd()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oResponse.Close()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Write(tmp)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please help me on how to post data to the url spicified.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you..............&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to stop excetpion bubbling in Global.asax if you have an "Error Handling Module" </title><link>http://forums.asp.net/thread/2870696.aspx</link><pubDate>Fri, 16 Jan 2009 09:00:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2870696</guid><dc:creator>DanielC.</dc:creator><author>DanielC.</author><slash:comments>7</slash:comments><comments>http://forums.asp.net/thread/2870696.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=2870696</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have an &amp;quot;Error Handling Module&amp;quot; for porcessing errors but I also have some code executed in Global.asax.&lt;/p&gt;&lt;p&gt;The &amp;quot;Error Handling Module&amp;quot; is exectued first (which is fine) in it I call &amp;quot;Server.ClearError()&amp;quot; because I would like to stop the execution of other error handlers.&lt;/p&gt;&lt;p&gt;I found an unexpected behaviour: the global.asax function Application_Error is executed!!!! &lt;/p&gt;&lt;p&gt;Since I called  &amp;quot;Server.ClearError()&amp;quot; I was expected to stop exception bubbling. &lt;/p&gt;&lt;p&gt;Could somebody help me?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Kind regards&amp;nbsp;&lt;/p&gt;&lt;p&gt;Daniel &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>HTTP Custom Handler Help</title><link>http://forums.asp.net/thread/3515467.aspx</link><pubDate>Mon, 16 Nov 2009 14:15:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515467</guid><dc:creator>gligi</dc:creator><author>gligi</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3515467.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3515467</wfw:commentRss><description>&lt;p&gt;Hi.&lt;/p&gt;&lt;p&gt;I have following custom handler (defined using the vs2008) which runs fine on the IIS7:&lt;/p&gt;&lt;p&gt;&amp;lt;add verb=&amp;quot;*&amp;quot; path=&amp;quot;Home/*&amp;quot; validate=&amp;quot;false&amp;quot; type=&amp;quot;MyHandler&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;which maps urls such as /Home/Dummy to /start.aspx?user=Dummy.&lt;/p&gt;&lt;p&gt;The problem is that our applications on the productive enviroment run on the IIS6.&lt;/p&gt;&lt;p&gt;How can i define such a handler on the IIS6 or how can I make it work?&lt;/p&gt;&lt;p&gt;Please help.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Markov&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ASHX Handler + Threads</title><link>http://forums.asp.net/thread/3517063.aspx</link><pubDate>Tue, 17 Nov 2009 08:35:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3517063</guid><dc:creator>eitama</dc:creator><author>eitama</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3517063.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3517063</wfw:commentRss><description>&lt;p&gt;Hello guys,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have a page named Calculate.ashx, the page will be called every 10 seconds until a complete result is available.&lt;br /&gt;I need to start 3 external applications, each to fetch information for me, the whole thing would take about 3 minutes.&lt;/p&gt;&lt;p&gt;My question is, how do I start 3 threads and &amp;quot;keep in touch&amp;quot; with them from the ashx code, even though the context of the file will end&lt;br /&gt;because I have to send a response to client?&lt;/p&gt;&lt;p&gt;I&amp;#39;m not sure I am clear so i&amp;#39;ll try to explain it again in a different way,&lt;br /&gt;when a request arrives to Calculate.ashx for the 1st time, Calculate.ashx will start 3 Threads, each with it&amp;#39;s own job.&lt;br /&gt;Now i need to answer the client with ResponseWrite or something, and the ashx file flow will end.&lt;br /&gt;In 10 seconds, the client will again send a request to Calculate.ashx, now Calculate.ashx needs to check the state of the Threads it created 10 seconds ago,&lt;br /&gt;Will these Threads still exist? won&amp;#39;t they be deleted because the context ended 10 seconds ago?&lt;br /&gt;How do I keep the &amp;quot;pointers&amp;quot; to those Threads?&lt;/p&gt;&lt;p&gt;Thank you!&lt;br /&gt;Eitam.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Using Embedded Resources Without a UserControl</title><link>http://forums.asp.net/thread/3512980.aspx</link><pubDate>Sat, 14 Nov 2009 19:31:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3512980</guid><dc:creator>sisdog</dc:creator><author>sisdog</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3512980.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3512980</wfw:commentRss><description>&lt;p&gt;I have a dll project that has HttpHandler code that is referenced in my ASP.Net web project. &amp;nbsp;Now, when a URL comes into my web app that is sent to my HttpHandler, I&amp;#39;m trying to return HTML that has references to resources (images, js, css, etc.) that are embeeded in my dll project. &amp;nbsp;But everywhere I&amp;#39;ve looked people are describing how to do this WITHIN A USERCONTROL. &amp;nbsp;But I don&amp;#39;t have a user control. &amp;nbsp;I just have my IHttpHandler that receives the HttpContext and I build my http response through HttpContext.Response.&lt;/p&gt;&lt;p&gt;This is a code sample from MSDN. &amp;nbsp;It seems like the only way to use the GetWebResourceUrl() method is to have a reference to a ClientScriptManager, which in turn expects to have access to the Page reference. &amp;nbsp;Can I get to this from my HttpContext, which is the only thing I have access to in my HttpHandler?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;    // Define the resource name and type.
    String rsname = &amp;quot;script_include.js&amp;quot;;
    Type rstype = typeof(ClientScriptResourceLabel);
        
    // Get a ClientScriptManager reference from the Page class.
    ClientScriptManager cs = Page.ClientScript;

    // Write out the web resource url.
    ResourcePath.InnerHtml = cs.GetWebResourceUrl(rstype, rsname);&lt;/pre&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>url funda?</title><link>http://forums.asp.net/thread/3515951.aspx</link><pubDate>Mon, 16 Nov 2009 18:05:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515951</guid><dc:creator>myms.net</dc:creator><author>myms.net</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3515951.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=27&amp;PostID=3515951</wfw:commentRss><description>&lt;p&gt;many times we have seen link&amp;nbsp;as below&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fmyplanetsoft%2Ecom%2Fdownload%2Findex%2Ephp%3Fq%3Dd5468748c51599af21489418923afde2%26f%3Daklog%2Ezip%26s%3Db%26e%3Dxxxxxx%5Fxxxxxx%40rediffmail%2Ecom"&gt;http://www.rediffmail.com/cgi-bin/red.cgi?red=http%3A%2F%2Fmyplanetsoft%2Ecom%2Fdownload%2Findex%2Ephp%3Fq%3Dd5468748c51599af21489418923afde2%26f%3Daklog%2Ezip%26s%3Db%26e%3Dxxxxxx%5Fxxxxxx%40rediffmail%2Ecom&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;which when clicked opens up new windows, here&amp;nbsp;it opens myplanetsoft and let the users download file (here purpose is to use link to download software.&lt;/p&gt;
&lt;p&gt;now look at red.cgi?red=......... in the above line. As i feel this is the thing which redirects user to somewhere else but&amp;nbsp;can u tell me how to implement such feature from mywebsite and how a new window with new link appears though in the above link rediffmail.com is the main domain.&lt;/p&gt;
&lt;p&gt;Does the red?= helps the link for redirection&lt;/p&gt;</description></item></channel></rss>