I’ve searched for an answer to this, and I may not be phrasing it correctly but how do I add my own ascx template (or any file template) in the “add new item” of Visual Studio?
I have a set of ascx files, which inherit a custom class – This all works fine, however when I add a new ascx, I then have to go into the code behind and edit this to have the new inheritance plus a couple of other standard parts in the page_load.
Is there a way I can add my own ascx template which will have all this setup for me?
The answer can be found in the MSDN documentation:
To add a custom project item template to the Add New Item dialog box