Is there a simple way on a .net website to navigate a user back to the previous page they were on before submitting a form without needing a complex breadcrumb system? For example, imagine moving from Page1.aspx to Page2.aspx, which contains a form. Upon form submission, the goal is to return the user to their original page, in this scenario: Page1.aspx. The specific page may change.
I began experimenting with javascript and history.go(), however, I encountered some issues making it function correctly. Any ideas or recommendations to achieve this functionality?