Should I put XSLT files in the App_Data folder of my ASP.NET Web Application?
I have a number of XSLT files in my ASP.NET Web Application solution. Should these go in the App_Data folder?
The MSDN 'Project Folder Structure' article suggests that the App_Data folder is for 'data files'. As XSLT files are not strictly 'data files' then should they go elsewhere?
I do not want end users to be able to access the XSLT files from their browsers, so App_Data seems like an obvious location for this, but I am not sure.
开发者_StackOverflowMany thanks.
The App_Data
folder is a perfectly reasonable; however a better option may be to "embed" the XSLT into your assemblies as a resource. This way you don't have to worry about deploying more files. It also makes it harder for a client to look at your XSLT code (if this bothers you).
精彩评论