Set Asp Label Text during page load (C#) : Page Load « Page « ASP.Net






Set Asp Label Text during page load (C#)

<%@ Page Language="C#" %>
<script runat="server">

    void Page_Load()
    {
       Message.Text="The ASP.NET line";
    }

</script>
<html>
<head>
    <title>Inserting ASP.NET code Example</title>
</head>
<body>
    <asp:Label id="Message" runat="server"></asp:Label>
    <br />
</body>
</html>

           
       








Related examples in the same category

1.Is the page loaded first time (VB.net)