We are beginning a project to recode our application in ASP.NET, and are just trying to sort out our architecture.
We have a PageTemplate class that has our interface elements, and that is inherited by our base product. This all works great, having the PageTemplate use the Control collection and overriding AddParsedSubObject, based on an example by J. Ambrose Little on asp.net.
Now, we customize the base product for numerous clients, (sometimes just one page, sometimes multiple pages) and want to inherit from the base product. Our problem is that we can't find any way to inherit from the base product aspx files. All the code behind stuff inherits fine, it is just the page interfaces that we are having trouble with. We want to avoid having a copy of all the pages for each customization, because that will make maintenance a nightmare - if there is a change to one page, we will have to update each and every site with that change.
Everything I have read so far indicates that you can't inherit from aspx files.
So my question is: is there a way around this, or are we going to have to reconsider our entire architecture to make this work?
We have a PageTemplate class that has our interface elements, and that is inherited by our base product. This all works great, having the PageTemplate use the Control collection and overriding AddParsedSubObject, based on an example by J. Ambrose Little on asp.net.
Now, we customize the base product for numerous clients, (sometimes just one page, sometimes multiple pages) and want to inherit from the base product. Our problem is that we can't find any way to inherit from the base product aspx files. All the code behind stuff inherits fine, it is just the page interfaces that we are having trouble with. We want to avoid having a copy of all the pages for each customization, because that will make maintenance a nightmare - if there is a change to one page, we will have to update each and every site with that change.
Everything I have read so far indicates that you can't inherit from aspx files.
So my question is: is there a way around this, or are we going to have to reconsider our entire architecture to make this work?