Page Event: init (C#) : Page Init « Page « ASP.Net






Page Event: init (C#)

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

    void Page_Init()
    {
        Trace.Write("NOTE - First line of Page_Init");
    }

</script>
<html>
<head>
    <title>Demonstration of Page Events</title>
</head>
<body>
    <form runat="server">
        <asp:Button id="Button1" runat="server" Text="Submit"></asp:Button>
        <br />
    </form>
</body>
</html>

           
       








Related examples in the same category

1.Page init and load event (VB.net)