by Dominic Zukiewicz
26. February 2010 10:29
Nothing to complex this time, just for reference really. Sometimes you want a simple button to just go back to the previous page. All you need is:
<asp:Button
runat="server"
Text="<%$Resources:MyResources,Back%>"
OnClientClick="javascript:history.back(); return false;"/>
The reason I'm using an ASP.NET Button is purely for the Localization functionality, so you can use with with HTML controls as well