Classic SharePoint quandry, but so far the resources I've looked at haven't helped.
On one hand, application pages work perfectly, but having them live in the 14 hive isn't ideal for a number of reasons.
On the other hand, you can have a Web Part Page with a pre-embedded Visual Web Part, and you have a lot of the same functionality.
Problem is, I'm trying to build a product, and as far as I can tell you can't have web parts that don't show up on the menu.
I really don't want people being able to embed these code fragments at will, plus it just looks sloppy.
Is there any way to have an application page that lives in the site root, or a document library? I've seen ways to attach a code file to a web page, but then you can't interact with controls, etc...
Regardless of the post title, goal is to have a page that lives in the site, not the 14 hive, that can run custom code to render HTML based on settings and such living in lists.
* EDIT *
Here is how it is now on the page:
<%@ Register TagPrefix="WpNs0" Namespace="Namespace.WebParts.CodeLoader" Assembly="Namespace, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f3223936ce445e13"%>
<WebPartPages:WebPartZone runat="server" Title="PanoramaConfig" ID="PanoramaConfig" AllowLayoutChange="FALSE"><ZoneTemplate>
<WpNs0:CodeLoader runat="server" ID="g_ad1eb52a_6902_463b_9d44_77afd52fc056" Description="My Visual WebPart" ChromeType="None" Title="CodeLoader" __MarkupType="vsattributemarkup" __WebPartId="{AD1EB52A-6902-463B-9D44-77AFD52FC056}" WebPart="true" __designer:IsClosed="false" partorder="2"></WpNs0:CodeLoader>
</ZoneTemplate></WebPartPages:WebPartZone>
So I can deploy the ASCX file without the .webpart? I'll give it a shot and mark answer if it works. If not you can take a look at the above and recommend from there.