Public class Webform1 inherits system.web.ui.page
#Region "The program code generated by the web form design"
'This is called for the web form design tool.
End Sub protected withevents button1 as system.web.ui.webcontrols.button
'Note: The following reserved positions are announced by the project that the Web Form design tool is required. 'Do not delete or move it. Private DesignerPlaceHolderDeclaration as System.Object
Private sub page_init (Byval e as system.EventArgs) Handles mybase.init 'Codegen: This is the method called the WEB Form Design Tool'. Do not modify the program code editor. InitializationComponent () End Sub
#End region
Private Sub Page_Load (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'is placed where the user code to initialize the page AddHandler Button1.Click, AddressOf btn_click End Sub Sub btn_click (ByVal sender As System. Object, byval e as system.eventargs) Response.write ("
btn_click") End Sub
PRIVATE SUB button1_Click (Byval e as system.EventArgs) Handles button1.click response.write ("
button1_ckick") End Subend Class