Mega Code Archive

 
Categories / ASP.Net Tutorial / Page Lifecycle
 

Grab Browser Info

<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">     <title>Grab Browser Info</title> </head> <body>     <form id="form1" runat="server">     <div>         <asp:Button ID="Button1" runat="server" Text="I'm a Button"              ie:Text="IE Button"              mozilla:Text="Firefox Button" /> &nbsp;         <asp:CheckBox ID="CheckBox1" runat="server" Text="I'm a CheckBox"              ie:Text="IE CheckBox"              mozilla:Text="Firefox CheckBox" /> &nbsp;     </div>     </form>      </body> </html>