I am using SharePoint Server 2007 + C# + .Net 3.5 + VSTS 2008 + ASP.Net. And I am using collaboration portal template.
I am developing a custom aspx page and put it in _layout folder of a site and I want to apply default.master of the SharePoint site to this aspx page. Any samples about how to achieve this goal?
You can put code in the PreInit event to make your custom page use the current site’s masterpage.
Or replace my.master with default.master in order to use the default master page. Or check spweb’s MasterUrl property and use that instead.
Either way it should get you going in the right direction.