|
-
Sep 3rd, 2002, 03:10 PM
#1
Thread Starter
Member
Page_Load event
I have observed an effect on my aspx pages that I just need to confirm. If I put in my .aspx code-behind file a custom function and after that, the code of my Page_Load event, asp.net ignores my Load event. This way:
Public Function MyFunction() As String
End Function
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
But if I change the position between the two routines, the Load event runs. Is it really mandatory that my Page_Load be the first routine of my page?
Thanks,
Robert
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|