Overridable sub Page_Load

James

Well-known member
Joined
Oct 3, 2002
Messages
78
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 dont intend to override it in my presentation code? I dont understand why it didnt work without the overridable. Can someone explain?
 
Oh, I re-read the post from Robby. I added Handles MyBase.Load now it works fine.

The ASP.NET Unleashed book that Im using is a good book but it isnt explaining everything. Maybe Im 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
 
Back
Top