this is what I'm doing: 1: Custom Authorization which loads Home/NoAccess 2: the NoAccess method will redirect to the page the user came from.
What I want added to this, is that when the user goes through the NoAccess controller something is placed in the viewbag or w.e.. that I can use to show a small messagebox saying something like "You've got no access".
The problem I am having is that when I put something in my ViewBag it doesn't reach the View. Is there an easy way to redirect the user to his previous page when he doesn't pass authorization and show a alert popup?