You can go from all users to javascript, but if you need to go to the server:
I do not think it is really beautiful, but he is doing his job. Also gives you a lot of energy.
First, on the main page, we have such code to set the page name in the session
if (!IsPostBack) { if (Request.UrlReferrer != null && Request.UrlReferrer.AbsoluteUri != null) { Session.Add("UrlReferrer", Request.UrlReferrer.AbsoluteUri); } }
Then we have the ashx walking arm with simple code like this.
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebApplication1 {
All buttons in the application can redirect backhandler.ashx files. Yuo could even put this in your css.
Hope this helps.
source share