F
Fabrice
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_BeginRequest
Sub. But as i use server.transfer in my web application i get always the old
URL even if
i use the property "HttpContext.Current.Request.CurrentExecutionFilePath".
My global.asax
....
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Dim myCurrentURL As String =
HttpContext.Current.Request.CurrentExecutionFilePath
....
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.Current.Request.CurrentExecutionFilePath .... 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.
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_BeginRequest
Sub. But as i use server.transfer in my web application i get always the old
URL even if
i use the property "HttpContext.Current.Request.CurrentExecutionFilePath".
My global.asax
....
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Dim myCurrentURL As String =
HttpContext.Current.Request.CurrentExecutionFilePath
....
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.Current.Request.CurrentExecutionFilePath .... 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.