James Posted November 23, 2002 Posted November 23, 2002 I am new to ASP.NET and have question regarding code-behind. I created a code-behide file with a sub page_load. When I ran my code it did not work. However, after I replaced sub page_load with overridable sub page_load it worked. Do I have to use overridable sub page_load everytime in my code-behind even if I don't intend to override it in my presentation code? I don't understand why it didn't work without the overridable. Can someone explain? Quote
Moderators Robby Posted November 23, 2002 Moderators Posted November 23, 2002 do you have 'Handles MyBase.Load' at the end of your sub (line) Quote Visit...Bassic Software
James Posted November 23, 2002 Author Posted November 23, 2002 Oh, I re-read the post from Robby. I added 'Handles MyBase.Load' now it works fine. The ASP.NET Unleashed book that I'm using is a good book but it isn't explaining everything. Maybe I'm playing too much before I get a chance to get to read what I need. Most likely I be posting often in the next few weeks. Thanks, Robby Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.