I have a Web Form page that is called Search.aspx. I need to render the form in other places so I'd like to convert the Web Form to a User Control, but my Search.aspx.cs inherits a custom Page class which inherits System.Web.UI.Page. Since I C# doesn't support multiple inheritance, I'm unable to inherit both my custom Page class and System.Web.UI.UserControl class in my User Control Search classs (Search.ascx.cs) class.
I was wondering if there was a way around this without having to create a second custom page class for the UserControl.
Thanks in advance.