<%@ PAGE LANGUAGE="VB" AutoEventWireup="false" Inherits="Test" Src="sample.aspx.vb" %>
<html>
<body>
<asp:Label id="l1" runat="server" />
<br>
<asp:Label id="l2" runat="server" />
</body>
</html>
imports System
imports System.Web.UI
imports System.Web.UI.WebControls
public class Test
Inherits Page
protected l1 As Label
protected l2 As Label
private Sub Page_Init(sender As object, e As EventArgs) Handles MyBase.Init
l1.Text = "Page_Init"
End Sub
private Sub Page_Load(sender As object, e As EventArgs) Handles MyBase.Load
l2.Text = "Page_Load"
End Sub
End class