Re: Clean display URL on custom error redirect
- From: "cpnet" <cpnet@xxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 21:44:46 -0500
With your mention of "rewriting" I had a new term to google on. And yes,
that is exactly what I am trying to do! After a lot of frustration, I have
settled on implementing an IHTTPModule to handle the 'fake' directories. I
have also found that by using the HttpContext.RewritePath overload like:
context.RewritePath("~/Users/Default.aspx?userid=1", false);
I don't have the problems with relative links. (It's passing 'false' as the
second argument that does the trick). The documentation on this is pretty
slim so I have no idea why this works, but it just does.
.
- References:
- Clean display URL on custom error redirect
- From: cpnet
- Re: Clean display URL on custom error redirect
- From: Charles
- Re: Clean display URL on custom error redirect
- From: cpnet
- Re: Clean display URL on custom error redirect
- From: Charles
- Clean display URL on custom error redirect
- Prev by Date: EVENT ID 1003 ASPNET_WP.EXE DeadLock
- Next by Date: Style helper box
- Previous by thread: Re: Clean display URL on custom error redirect
- Next by thread: Email Crystal Report as PDF When Viewed
- Index(es):
Relevant Pages
|