[thelist] (asp.net 1.1) Application Path weirdness

Anthony Baratta anthony at baratta.com
Fri Jul 6 14:00:25 CDT 2007


Oops...Change HOST_NAME to SERVER_NAME.

-----Original message-----
From: "Tab Alleman" talleman at Lumpsum.com
Date: Fri, 06 Jul 2007 11:35:44 -0700
To: "Anthony Baratta" anthony at baratta.com, thelist at lists.evolt.org
Subject: RE: [thelist] (asp.net 1.1) Application Path weirdness

> Actually the / in front of the ? isn't a typo.  I CnP'd it right out of the address bar.  That's the part that really has me puzzled...but I tried your suggestion, and now I get:
> 
> http:////ClaimantList.aspx?Submit=Search&ClaimantSearch=smi
> 
> which is also no good.   
> 
> So my current code is:
> 
> Response.Redirect("http://" & Replace(HttpContext.Current.Request.ServerVariables("HOST_NAME") & "/" & HttpContext.Current.Request.ApplicationPath & "/ClaimantList.aspx?Submit=Search&ClaimantSearch=" & tbSearch.Value.ToString, "//", "/"))
> 



More information about the thelist mailing list