Luckily, from the client's perspective, you cannot access the client history
directly from the server side. To navigate the client's history you must
use a client side script along the lines of:
<script language=javascript>
function goBack() {
window.history.go(-1);
}
</script>
HTH
DalePres
MCAD, MCDBA, MCSE
"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
Hello!
I'm trying to figure out how to go back to the previous webpage without
using the code below since the directory structure is hardcoded. It should
work just like clicking the "Back" button on Internet Explorer.
private void Button5_Click(object sender, System.EventArgs e)
{
Response.Redirect("http://localhost/Directory1/Form1.aspx");
}