This code shows you how ASP.NET simplifies information about the current browser into class properites. There are others but these are the most useful.
<%@ Page Language="c#" %>
<script runat="server">
public void Page_Load(Object sender, EventArgs e) {
HttpBrowserCapabilities bc = Request.Browser;
Response.Write("Name = " + bc.Browser + "<br>");
Response.Write("Version = " + bc.Version + "<br>");
Response.Write("Platform = " + bc.Platform + "<br>");
Response.Write("Is Crawler = " + bc.Crawler + "<br>");
Response.Write("Is AOL = " + bc.AOL + "<br>");
}
</script>
Comments