Detuction ASP.NET (3) Green Apple Studio (Compilation) 01-5-18 09:41:52
Page event
I mentioned that ASP.NET has been rewritten from the beginning to the foot, but I didn't point out that it was rebuilt according to the object-oriented idea. At the top of the object tree, the Page object, the page object, the ASP.NET's control, the application, and the page are inherited from this object, that is, each page is an exemplary of the page object. The page's LOAD event is a very important event, as shown in Table 3 below:
Table 3 Using page events
SUB Page_Load (Source As Object, E AS Eventargs)
'Code to Run WHEN Page Loads
End Sub
Sub SubmitButton_Click (Source As Object, E AS Eventargs)
'Code to Run when Button Is Click
End Sub
Sub Page_unload (Source As Object, E as Eventargs)
'Code to Run WHEN Page Unloads
End Sub
script>