If the client calls the server with window.location.replace() and the server
then calls the client on its return with Response.Redirect( ) then the
server entry is never entered into the callers history and a "back arrow"
will take the user back to the page that called the client page.
This even works correctly when there is a query string to the server and
another query string from the server.
My testing with ASP 3 was throwing me off. In ASP e3 you must use
window.location.replace( ) on both the client and the server. This was
apparently corrected in ASP.NET.
Getting that entry off the history stack today has been a monumental
improvement. That annoying "cant get off this page" problem is now gone.
--
-- Thom Little --
www.tlanet.net -- Thom Little Associates, Ltd.
--
"Kevin Yu [MSFT]" <v-> wrote in message
news:...
> Hi Thom,
>
> First of all, I would like to confirm my understanding of your issue. From
> your description, I understand that you need to achieve the same goal as
> window.location.replace at server side. If there is any misunderstanding,
> please feel free to let me know.
>
> As far as I know, we cannot achieve this at server side with C# code.
> Because when the server receive the request, it sends the response back,
> the client web browser thinks it as a new location. and will add a new
> history in the history stack.
>
> HTH.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>