In a web site project, all application code which is not a web form needs to be located in a special folder called ‘App_Code’.
- Right click on the project node, click ‘Add ASP.NET Folder–>App_Code’
In a web site project, all application code which is not a web form needs to be located in a special folder called ‘App_Code’.