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 Link Button to:
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;" />

Dwayne JohnsonPosted Jan 2, 2018, 2:58 PM
WOwowow such good work
Gowtham RajamanickamPosted Mar 13, 2015, 2:06 AM
Good one...
Khargesh RajputPosted Mar 3, 2015, 6:25 AM
nice sir