You can use Request.UrlReferrer
to get the referring URL as well if you don’t like accessing the Request.ServerVariables
dictionary directly.
More Related Contents:
- How do I redirect to the previous action in ASP.NET MVC?
- Redirect to external URI from ASP.NET MVC controller
- Redirecting to specified controller and action in asp.net mvc action filter
- How to redirect HTTP to HTTPS in MVC application (IIS7.5)
- Redirect to action and need to pass data
- Asp.net mvc 301 redirect from www.domain.com to domain.com
- How to simulate Server.Transfer in ASP.NET MVC?
- Where should I do Injection with Ninject 2+ (and how do I arrange my Modules?)
- Encrypted configuration in ASP.NET Core
- What is an MVC child action?
- Including an anchor tag in an ASP.NET MVC Html.ActionLink
- MVC3 unobtrusive validation group of inputs
- Display DateTime value in dd/mm/yyyy format in Asp.NET MVC
- Return a JSON string explicitly from Asp.net WEBAPI?
- ASP.NET MVC – Custom validation message for value types
- ASP.NET MVC: Route with optional parameter, but if supplied, must match \d+
- Context.User.Identity.Name is null with SignalR 2.X.X. How to fix it?
- AllowAnonymous not working with Custom AuthorizationAttribute
- IIS hijacks CORS Preflight OPTIONS request
- ASP.NET MVC and mixed mode authentication
- How do I route a URL with a querystring in ASP.NET MVC?
- Recursion in an ASP.NET MVC view
- ASP.NET MVC 3: Required steps for unobtrusive client-side validation of dynamic/AJAX content
- ASP.NET MVC posted file model binding when parameter is Model
- Razor Nested WebGrid
- Steve Sanderson’s BeginCollectionItem helper won’t bind correctly
- MVC3 Validation – Require One From Group
- How can dynamic breadcrumbs be achieved with ASP.net MVC?
- ASP.Net MVC DisplayFormat
- Html.Raw() in ASP.NET MVC Razor view