How can i find what version of browser a user is using and ask him to upgrade it
You can perform feature detection using jQuery, like this:
if (!jQuery.support.opacity)
//Waah waah waah...
You can also check the browser version using jQuery, like this:
if (!jQuery.browser.msie && jQuery.browser.version === 6)
//Waah waah waah...
However, it should be avoided where possible.
You can read the HTTP_USER_AGENT
from the Request.ServerVariables
.
In ASP.NET that would be:
Response.Write(HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"]);
More info here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With