Question

How to add button "Back to X-page", where X-page is name of previous page.

I red this post about Request.UrlReferrer, but don't understand how to get page title.

I try to parse PageRefferrer and is some token exists - i set some name of X-Page, but i can't process all cases. Is there any other solution?

No correct solution

OTHER TIPS

You can try below code:

<script>
    document.write('<a href="' + document.referrer + '">Go Back</a>');
</script>

Good luck....

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top