if (Request.Browser.Type.Contains("Firefox")) // replace with your check
{
...
}
else if (Request.Browser.Type.ToUpper().Contains("IE")) // replace with your check
{
if (Request.Browser.MajorVersion < 7)
{
DoSomething();
}
...
}
else { }
More Related Contents:
- Search SQL by date ASP.NET
- How to use __doPostBack()
- Can’t get Czech characters while generating a PDF
- Configure the authorization server endpoint
- How to Get IP Address?
- How to check a input IP fall in a specific IP range
- What is the difference between PreserveReferencesHandling and ReferenceLoopHandling in Json.Net?
- Async Void, ASP.Net, and Count of Outstanding Operations
- HttpContext.Current.Session is null when routing requests
- Declaration of Anonymous types List [duplicate]
- Check if datetime instance falls in between other two datetime objects
- Log4Net Logging of two different levels to two different appenders for the same logger
- How to Kill A Session or Session ID (ASP.NET/C#)
- Check ssl protocol, cipher & other properties in an asp.net mvc 4 application
- What does N’ stands for in a SQL script ? (the one used before characters in insert script)
- Read excel file from a stream
- On postback, how can I check which control cause postback in Page_Init event
- sending mail along with embedded image using asp.net
- How can I add an ampersand for a value in a ASP.net/C# app config file value
- ASP.Net Core MVC – Client-side validation for custom attribute
- Opening password-protected pdf file with iTextSharp
- Comparing Object properties using reflection
- System.web.mvc missing
- How to route EVERYTHING other than Web API to /index.html
- How can I ensure that appsettings.dev.json gets copied to the output folder?
- How to add config transformations for a custom config file in Visual Studio?
- Sort two Lists together as one?
- The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine.
- JavaScript: Alert.Show(message) From ASP.NET Code-behind
- Getting system Timezones in different languages