Assign value to browser title bar (C#) : Browser « Request « ASP.Net






Assign value to browser title bar (C#)

<%@ Page Language="C#" %>
<script runat="server">
    void Page_Load()
    {
        ltlTitle.Text = DateTime.Now.ToString("D");
    }
</script>
<html>
<head>
    <title><asp:Literal id="ltlTitle" Runat="Server" /></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <h1>Look in the title bar</h1>
    
    </div>
    </form>
</body>
</html>

           
       








Related examples in the same category

1.Use Browser property in Request object (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)