Grab Browser Info : Controls « Page Lifecycle « ASP.NET Tutorial






<%@ 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>








5.11.Controls
5.11.1.Controls.Count
5.11.2.Add a control to a page dynamically
5.11.3.Grab Browser Info
5.11.4.Use the input focus capability of ASP.NET 2.0 and superior