Ah, yes, but - you can add that line in the base form. Just override
OnInit and add the event handler for page load. OnInit is called by
the derived web form in the templated code VS.NET ceates for a new web
form.
With that in place you wouldn't need to remember to do anything in the
derived class.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 20 Apr 2005 05:15:02 -0700, "Alex"
<> wrote:
>Yes, thanks. I added this in InitializeComponent : this.Load += new
>System.EventHandler(base.Page_Load);
>
>The nice thing about this solution is that it's more scaleable since I can
>keep on adding code in the base form if needed. The only downside is that we
>need to remember to add the line in all of our forms, but I guess that's what
>code reviews are for....