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).
Related Contents:
- How to get the file size from http headers
- Custom header to HttpClient request
- how to put and use two flags(insert and update flags) on a single button to perform two operations in asp.net with C#
- ASP.NET Identity’s default Password Hasher – How does it work and is it secure?
- Keeping ASP.NET Session Open / Alive
- How to get DropDownList SelectedValue in Controller in MVC
- converting a base 64 string to an image and saving it
- How to force HTTPS using a web.config file
- Pass table valued parameter using ADO.NET
- How to call code behind server method from a client side JavaScript function?
- How do you programmatically fill in a form and ‘POST’ a web page?
- ASP.NET file download from server
- How do I enable NuGet Package Restore in Visual Studio?
- How to call a VBScript file in a C# application?
- Forms Authentication across Sub-Domains
- Pass C# ASP.NET array to Javascript array
- Json.NET serialize object with root name
- How to handle session end in global.asax?
- How to read values from the querystring with ASP.NET Core?
- Export DataTable to Excel File
- How to bind crystal report to manually created DataSet
- Should I store my images in the database or folders? [duplicate]
- Pattern for calling WCF service using async/await
- Pulling data from a webpage, parsing it for specific pieces, and displaying it
- How do I dispose my filestream when implementing a file download in ASP.NET?
- How can I pass a username/password in the header to a SOAP WCF Service
- Displaying standard DataTables in MVC
- Add Header and Footer for PDF using iTextsharp
- Writing MemoryStream to Response Object
- Convert from binary data to an image control in ASP.NET
- How do i split a String into multiple values?
- Parse and modify a query string in .NET Core
- HttpWebRequest not passing Credentials
- Why use HttpClient for Synchronous Connection
- ViewModel validation for a List
- How do I see the raw HTTP request that the HttpWebRequest class sends?
- Getting current directory in .NET web application
- The object cannot be deleted because it was not found in the ObjectStateManager
- What happens in BeginProcessRequest()?
- How to get full host name + port number in Application_Start of Global.aspx?
- C# – How to make a HTTP call
- How do I set a default User Agent on an HttpClient?
- The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine.
- Getting Nested Object Property Value Using Reflection
- When `PostAuthenticateRequest` gets execute?
- ASP.NET ODBC Query with parameters
- Can’t find how to use HttpContent
- Why do we need a private constructor?
- Font awesome inside asp button
- How to convert a list into data table [duplicate]