<%@ Page Language="VB" %> <script runat="server"> Sub Button_Click(Sender As Object, e As EventArgs) Response.Write(Sender.Text) End Sub </script> <html> <body> <form runat="server"> <asp:button id="btSubmit" Text="Submit" runat=server OnClick="Button_Click"/> </form> </body> </html>