Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

Go Back to the previous page in ASP.NET

Viewed:  1996 
Posted On:  27/02/2015 21:29:43 
How we can go back to the previous page in c# without Post back in c# ? 


Here I am going to show how we can use a button to go back to previous page in c# without post back.

We can use ASP button or Hyper Link to achieve this:

If you use Hyper Link:

<a href="javascript: history.go(-1)">Go Back</a> 


a href="##" onClick="history.go(-1); return false;">Go back</a>

If you want to use ASP.NET Button:

<asp:button id="btnCancel" runat="server" text="Cancel" OnClientClick="JavaScript:window.history.back(1); return false;" />

For Example Like in Below Screen:

Go Back1.png

Image 1.

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us