Tuesday, July 16, 2013

Browser Detection for ASP.Net Ajax


Browser Detection for ASP.Net Ajax

http://msdn.microsoft.com/en-us/library/cc679064.aspx One example of how this class can be used:
if (Sys.Browser.agent == Sys.Browser.InternetExplorer) 
    { 
    alert("Display this message for IE visitors");
    } 
For Sys.Browser.agent, the four values it can return are:
  • Sys.Browser.InternetExplorer
  • Sys.Browser.Firefox
  • Sys.Browser.Safari
  • Sys.Browser.Opera

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More