Use Browser property in Request object (C#) : Browser « Request « ASP.Net






Use Browser property in Request object (C#)

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

<form runat="server">
<asp:linkButton id="lnkTest" runat="server"
               forecolor="red"
               backcolor="yellow"
               width="50%"
               font-name="Times New Roman,serif"
               font-size="larger"
               font-bold="true"
               text="a yellow link button with red text" />
</form>
<br />
JavaScript supported: <% = Request.Browser["javascript"] %><br />
Reported type: <% = Request.Browser["type"] %>

</body>
</html>

           
       








Related examples in the same category

1.Assign value to browser title bar (C#)
2.Is your browser a beta one (VB.net)
3.Browser name, major version and minor version (VB.net)
4.Request.Browser.ActiveXControls: client supports activex? (VB.net)
5.Request.Browser.Frames: browser supports frames (VB.net)
6.Check Browser version and vendor(C#)
7.Check Browser version and name (VB.net)
8.Get Browser Information: AOL, JavaScript enabled, Browser type and tables enabled (VB.net)