switch (Request.Browser.Browser.ToLower())
{
case "ie":
if (Request.Browser.MajorVersion == 7)
labelText.Text = "Hello IE7!";
else
labelText.Text = "Hello IE (time to upgrade!)";
break;
case "firefox":
labelText.Text = "Hello Firefox";
break;
default:
labelText.Text = "Hello other browser";
break;
}How to set browser specific properties in the code-behind - ASP.NET
ASP.NET Benedict Alphonse Tuesday, May 26, 2009 0 comments
Subscribe to:
Post Comments (RSS)


0 Responses to "How to set browser specific properties in the code-behind - ASP.NET"
Post a Comment