Hi,
Thanks for the great file!
Based on my test, this issue is the expected behaivor in ASP.net 2.0. This
reason is:
Because the transfer between source and target pages happens on the server,
the browser has no information about the changed page, and it retains
information about the original (source) URL.
So when we click the link "Goto Page 2" at page 1, the redirect is working
at the server side and pass the page2 to the client box. However, since the
redirect is happend at the server side, the client url will not be changed
which still show the url for page1. Then when we click the link "Goto Page
3", the tranfer will happen in server-side as well and the IE will show the
content of page 3. However, since this transfer is started from the
pag2.aspx. Then IE will update the url to pag2.aspx. Then for the preceding
transfer, this procedure happen the same.
From the MSDN article on introducing the Transfer method, it suggests that:
This option is best used in situations where the URL is hidden from the
user.
*Redirecting Users to Another Page
http://msdn2.microsoft.com/en-us/library/x3x8t37x.aspx
"How do I transfer control to a new page without the address bar URL
changing at all"
For this requirement, I'd suggest:
1. Please don't tranfer more than once at your page. As the description
above, the first transfer in the page will not change the url.
2. Modify the logic to avoid the usage of Transfer. We could encapsulate
the logic into one library. For the Transfer operation, please call the
library to perform the processing.
3. Consider to embed one iFrame at your page so that we only need to change
the IFrame page source and there is no modificaiton to the current URL in
the browser address bar.
Please feel free to let me know if you have any further question on this
issue.
Have a nice day!
Best Regards,
Wei-Dong XU
Microsoft Support
---------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
---------------------------------------------------------------------------
It is my pleasure to be of any assistance.