ASP.NET App_Code folder

The App_Code folder in a website project in Visual Web Develop is something I didn’t quite fully understand till recently.

You can drop into that folder any sort of CSharp (.cs) file you please and provided you include “using System.Web.UI.WebControls;” you can directly interact with any .aspx page on the website and it’s web control elements.

Just instantiate the class in the aspx.cs file for any aspx file and away you go! =D

Advertisements

Published by

Alan Feekery

Developer, Gamer, Musician, Cyclist and big Motorsport fan... enjoys the odd cup of coffee :)