Wednesday, December 12, 2012

How to check for Browser information in ASP.Net

I needed to run a certain code only when the browser was IE. So I needed a way to check for browser, and here is the line of code:

if (string.Compare(Request.Browser.Browser, "IE", true) == 0)
{
   // your code goes here
}

No comments:

Post a Comment

Kitematic - Self Signed Certificate In Certificate Chain

Found this issue while behind a enterprise proxy. Proxy uses self signed certificate. Windows has the certificate as trusted, docker works f...