Last post Sep 03, 2017 10:10 AM by HostingASPNet
Sep 01, 2017 06:16 PM|Erno|LINK
in a web deployment where to locate the code behind files for keep secured, i dont know where to locate them, im already locate them in with my aspx files in order to the application works, but i dont know if is the best practice, or how to secure
Sep 01, 2017 10:58 PM|jzero|LINK
Code Behind files, have same name as .aspx file, with extension like ".aspx.cs" (for C#) or ".aspx.vb" (for VB).
To secure your files you have to use some settings in web.config file, not only the main one, you can have one web.config file for each folder of your application
Take a look here https://weblogs.asp.net/gurusarkar/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config
Sep 03, 2017 10:10 AM|HostingASPNet|LINK
You should precompile your project before deployment, and in this way all code behind logic will be precompiled in a dll file, and you will deploy only the .aspx and dll files.