(be kind - I'm still pretty new to .NET)
I'm attempting to set up a useful base web page for a project.
I've figured out how to subclass a page, but I'd like that subclassed page to have a masterpage assigned (and possibly some other properties as well).
If I try to set the masterpage in the subclassed page's OnPreInit event, I still wind up with the 'Content controls have to be top-level controls in a content page or a nested master page ..' error.
Is what I am trying to do possible? It seems awfully primitive to have to reassign master pages to each new page I create for my site..
I'm doing this in vb.net in VS2005 BTW.
Bill Kuhn - MCSE
bkuhn@kuhngroup.com
The Kuhn Group, Inc.
I'm attempting to set up a useful base web page for a project.
I've figured out how to subclass a page, but I'd like that subclassed page to have a masterpage assigned (and possibly some other properties as well).
If I try to set the masterpage in the subclassed page's OnPreInit event, I still wind up with the 'Content controls have to be top-level controls in a content page or a nested master page ..' error.
Is what I am trying to do possible? It seems awfully primitive to have to reassign master pages to each new page I create for my site..
I'm doing this in vb.net in VS2005 BTW.
Bill Kuhn - MCSE
bkuhn@kuhngroup.com
The Kuhn Group, Inc.