<%@ Page Language="C#" Debug="true" Trace="true" %>
<script runat="server">
void Page_Init()
{
Trace.Write("NOTE - First line of Page_Init");
}
void Page_Load()
{
Trace.Write("NOTE - First line of Page_Load");
}
</script>
<html>
<head>
<title>Chapter 6 - Demonstration of Page Events</title>
</head>
<body>
<form runat="server">
<asp:Button id="Button1" runat="server" Text="Submit"></asp:Button>
<br />
</form>
</body>
</html>
本文地址:http://com.8s8s.com/it/it8590.htm