1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Can't add templates to App_Data

Can't add templates to App_Data

4 posts, 0 answered
  1. Conrad Ehinger
    Conrad Ehinger avatar
    59 posts
    Registered:
    22 Sep 2009
    23 Jun 2011
    Link to this post
    I have my website templates in my App_Data  folder and am trying to add widget templates (ascx). The problem is, in Visual Studio 2010, when I try to add a user control (ascx) by clicking "Add new item" from the right click menu of a folder, they don't show up in the list. The only ones that show up are mdf, txt, etc. What's going on here? To my knowledge, you can't add ascx files to your App_Data folder in Visual Studio at all. Why has this become a standard for Sitefinity? And is there a work around? I'd really like to refrain from using notepad...
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    23 Jun 2011
    Link to this post
    "To my knowledge, you can't add ascx files to your App_Data folder in Visual Studio at all"

    Hmmm...well CONTEXTUALLY you can't but there's nothing preventing you

    1) You can pick txt but name it with .ascx :)  VS should see the extension ascx and properly show the icon\editor
    2) You can create it in the root and just move it up to App_Data
  3. Conrad Ehinger
    Conrad Ehinger avatar
    59 posts
    Registered:
    22 Sep 2009
    23 Jun 2011
    Link to this post
    Right - and I tried that, but unfortunately the file didn't show up in my solution explorer at all.
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    23 Jun 2011
    Link to this post
    At the top of the solution explorer, is the "Show All Files" icon selected?  Is it just that it needs to be included?

    Is this not what happens for you?
    http://screencast.com/t/egRXxoNsPzq
4 posts, 0 answered