3

I've just updated my ASP.Net code from HttpContext.RewritePath(targetPath) to use the .Net 3.5 function: HttpContext.Server.TransferRequest(targetPath,true)

However, I now no longer have any of the custom HttpContext.Items that I added, before the transfer.

Anyone have any ideas as to how I overcome this?

the_hoof
  • 43
  • 1
  • 6

1 Answers1

3

According the documentation, it preserves the querystring and Form collection, but it says nothing about context items. I'd say that you'll have to send them in other way: querystring or session.

Claudio Redi
  • 67,454
  • 15
  • 130
  • 155
  • Neither of those are really an option, due to the nature of the URL rewriting nodule that we've built. – the_hoof Sep 14 '10 at 07:42