Server.TransferRequest does not save HttpContext.Items

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

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

Anyone have any ideas on how I will overcome this?

+3
source share
1 answer

According to the documentation , it retains the sequence of requests and the assembly of the form, but does not say anything about context elements. I would say that you have to send them differently: querystring or session.

+3

Source: https://habr.com/ru/post/1764501/


All Articles