Hello
Does a solution exist to get always the right path when you use
Server.Transfer in web application (version 1.1) ?
I want to rewrite my URL by use Global.asax and Application_Beg inRequest
Sub. But as i use server.transfer in my web application i get always the old
URL even if
i use the property "HttpContext.Cu rrent.Request.C urrentExecution FilePath".
My global.asax
....
Sub Application_Beg inRequest(ByVal sender As Object, ByVal e As EventArgs)
Dim myCurrentURL As String =
HttpContext.Cur rent.Request.Cu rrentExecutionF ilePath
....
End Sub
But it seems not to work with server.tranfser property. I always get the
old URL.
For example, If I transfer a user to the page2.aspx from the page1.aspx by
use of server.transfer property, I will get "page1.aspx " as result with the
property HttpContext.Cur rent.Request.Cu rrentExecutionF ilePath .... although
i m really on the page2.aspx
If i place the same code in the SUB LOAD of each page i get the right URL.
So if someone can help me....
thanks a lot.