You could use the UrlReferrer property of the current request:
Request.UrlReferrer
This will read the Referer HTTP header from the request which may or may not be supplied by the client (user agent).
More Related Contents:
- How to get the file size from http headers
- Can we create custom HTTP Status codes?
- How to make the .net HttpClient use http 2.0?
- How to add cross domain support to WCF service
- Custom header to HttpClient request
- Request Web Page in c# spoofing the Host
- HttpClient retrieve all headers
- How to write a simple Html.DropDownListFor()?
- converting a base 64 string to an image and saving it
- The CodeDom provider type “Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider” could not be located
- WebClient.DownloadString() returns string with peculiar characters
- How to fix “The ConnectionString property has not been initialized”
- Changing project port number in Visual Studio 2013
- Selectively use default JSON converter
- ASP.NET MVC – How to show unauthorized error on login page?
- HttpContext.Current.Session is null in Ashx file
- Calling a method in parent page from user control
- How to make Check Box List in ASP.Net MVC
- GridView bound with Properties of nested class
- Why is my ClaimsIdentity IsAuthenticated always false (for web api Authorize filter)?
- Date vs DateTime
- How can I trigger/refresh my main .RAZOR page from all of its sub-components within that main .RAZOR page when an API call is complete?
- ASP.NET C# Static Variables are global?
- The model item passed into the dictionary is of type ‘mvc.Models.ModelA’ but this dictionary requires a model item of type ‘mvc.Models.ModelB‘
- Value cannot be null. Parameter name: items (in Dropdown List) ASP.NET MVC5
- Read a Registry Key
- Find a control on a page with a master page
- Text on an Image button in c# asp.net 3.5
- Can’t find how to use HttpContent
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4