Common base class for usercontrols and pages in ASP.NET
<p>Right now I have a base class for my pages which inherits <code>System.Web.UI.Page</code> and another base class for my usercontrols which inherits <code>System.Web.UI.UserControl</code>, these classes contains the same methods. Since C# doesn't support multiple inheritance I can't combine the two classes into one that inherits both Page and UserControl. </p>

<p>What would be the best way to keep the functionality in the two base classes but have the implementation of these methods in only one place?</p>

<p>I'm thinking of making a interface and let the two base classes call a third class that contains the implementation of the interface. Is there any better way so that when I add a new method I don't have to do it in three places (even though the implementation is only in the third class).</p>
