How can use back button in asp.net

Posted by Sekar.C under ASP.NET on 7/30/2012 | Points: 10 | Views : 1890 | Status : [Member] | Replies : 2
Hi,
How can use back button in asp.net. I have 2 aspx pages page1, page2 if I click back button in page2 move to page1 .

Regards
Sekar.c



Responses

Posted by: Agopi.Net on: 7/30/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

You can use thin in JavaScript function. Please try this

function nokeydown()
{
if ((event.keyCode == 8) || (event.keyCode == 116)) //backspace=8 and F5=116
{
event.keyCode = 0;
event.returnValue = true;
}
}

Regards,
Gopi A

Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 7/31/2012 [Member] Starter | Points: 25

Up
0
Down
In page2,under this function
private void back_button(>.....)
{


response.redirect("Page1.aspx");

}

Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response