So finally decision, also needs conisderation of web application and website type of project for putting class file in App_Code. I think you better read this detailed description The code behind file of the web services goes to AppCode folder by default. In general inside a website project, when you add class file, VS will prompt you, that you should add them in App_Code folder thats a excepted way.Īnd same goes for webapplication, you can add class file in App_Code, but you may observe some problem (I said, may) with deployment. Solve error due to differnet language in AppCode folder in asp.net. aspx files in my web root directory, but Ive created a subdirectory called /admin to hold aspx files for administration functions. Now about your question, consider website and webapplication type project for putting class files in App_Code. ![]() The App_Code folder and its special status in an ASP.NET Web application makes it possible to create custom classes and other source-code-only files and use them in your Web application without having to compile them independently. The App_Code folder therefore works much like the Bin folder, except that ![]() ASP.NET Core works with two runtime environment (. The first and most important change is that ASP.NET Core is open source and cross platform. The resulting assembly is accessible to any other code in the Web application. Please read What’s new in ASP.NET Core 2.0. You can store source code in the App_Code folder, and it will be automatically compiled at run time. dll and write a new version of it to the Bin folder, ASP.NET detects the update and uses dll file in the Bin folder is sufficient for ASP.NET to recognize it. To the Bin folder of your Web application and the class is then available to all pages.Īssemblies in the Bin folder do not need to be registered. A typical example is that you have the compiled code for a custom class. You can store compiled assemblies in the Bin folder, and other code anywhere in the Web application (such as code for pages) automatically references it. As per MSDN: There are 2 shared code folder in asp.net:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |