I need to provision a custom aspx page which does some work and then redirects to another page. Using a _layouts page , AKA an application page won't work since I only want this page accessible to one site collection.
I looked at using pattern #4 from this blog post. It feels pretty hacky, It asks you to drop the dll drop it into the bin of the site collection, and upload the file through SP Designer.
I'd rather have this page be a feature that gets included in my site definition or stapled to an existing site definition. I imagine I could use a feature receiver to deploy the files to the pages SP list. One of the comments on the blog post says as much:
Pardon my ignorance on this maybe I am missing the point completely but wouldnt it be easier to deploy your custom pages by programmatically adding them to the pages splist?
I basically, had a simple .aspx page with a user control. I deployed it via this method.
Has anyone been able to provision a custom page without using a _layouts page.
I guess another option is to keep using a _layouts page, but make sure the referrer is correct.