I have a page with a stored procedure which is called by different pages.
I want to be able to redirect from that SP page to the page that called the procedure. Whichever is the previous page.
I currently have my SP then at the bottom of the page the following code:
<script language="javascript">
window.location.href="default.asp";
</script>
Open in new window
but that is harcoded to redirect to that page, and what I need is to redirect to the previous page instead.