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

Go Back to the previous page in ASP.NET

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

 

Here I am going to show how we can use a button to go back to previous page in asp.net 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> 

OR

<
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.

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