Search This Blog

Wednesday, March 6, 2013

Browser Information by asp.net code


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>chandra prakash ask-dotnet.blogspot.com</title>
</head>
<body>

 <p><font face="Arial" size="3"><b>Browser Information by asp.net code</b></font></p>
 <hr align="left" color="#000000" style="width: 44%">
 <div align="left">
  <table border="1"  width="44%" style=color="#000000">
    <tr>
      <td width="34%"><font face="Verdana" size="2">Browser Type</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.Browser %></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">Version</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.Version %></font></td>
    </tr>
     <tr>
      <td width="34%"><font face="Verdana" size="2">Major Version</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.MajorVersion%></font></td>
    </tr>
     <tr>
      <td width="34%"><font face="Verdana" size="2">Minor Version</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.MinorVersion%></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">Is Beta</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.Beta%></font></td>
    </tr>
     <tr>
      <td width="34%"><font face="Verdana" size="2">Crawler</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%=Request.Browser.Crawler%></font></td>
    </tr>
     <tr>
      <td width="34%"><font face="Verdana" size="2">AOL</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.AOL%></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">Is WIN16</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.Win16%></font></td>
    </tr>
   
    <tr>
      <td width="34%"><font face="Verdana" size="2">Is Win32</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.Win32%></font></td>
    </tr>
     <tr>
      <td width="34%"><font face="Verdana" size="2">Supports Frames</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%=Request.Browser.Frames%></font></td>
    </tr>
     <tr>
      <td width="34%"><font face="Verdana" size="2">Supports Tables</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.Tables%></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">Supports Cookies</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%=Request.Browser.Cookies%></font></td>
    </tr>
   <tr>
      <td width="34%"><font face="Verdana" size="2">Java Script</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.JavaScript %></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">ActiveX Control</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.ActiveXControls %></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">Java Script</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.JavaScript %></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">Java Applet</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.JavaApplets %></font></td>
    </tr>
    <tr>
      <td width="34%"><font face="Verdana" size="2">VB Script</font></td>
      <td width="4%"><font face="Verdana" size="2">:</font></td>
      <td width="66%"><font face="Verdana" size="2"><%= Request.Browser.VBScript %></font></td>
    </tr>
  </table>
 </div>

 </body>
</html>

OUTPUT :



No comments :