When do you do the Url Rewriting? In global.asax? What method/event? The
output cache gets involved in the HttpPipeline fairly early, so you'd need
to plan when to do the rewriting. I've not tested the two together, so I'm
not sure what the results would be. I'll flag this post so I can go do some
testing. Fun stuff :)
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Can these two functions coexist?
>
[quoted text clipped - 9 lines]
>
> Can anyone shed any light?
R-D-C - 01 Apr 2005 00:15 GMT
I do the easy version of URL Rewriting ;-)
Say I want to see a URL in the browser that looks like
http://www.thingy.co.uk/English.News.23 that maps to
http://www.thingy.co.uk/news.aspx?Language=English&Story=23.
In global.asax BeginRequest I change the path using
HttpContext.Current.RewritePath("news.aspx")
I pass the querystring too and add an extra item to the querystring to say
waht the original URL was. I then pick this out in the page and use
HttpContext.Current.RewritePath to change the path again for postbacks.
Following this, the caching all goes to pot.
> When do you do the Url Rewriting? In global.asax? What method/event? The
> output cache gets involved in the HttpPipeline fairly early, so you'd need
[quoted text clipped - 19 lines]
>>
>> Can anyone shed any light?