I'm new to developing web applications, so I'm not sure if I'm going about this properly. What I'm trying to do is create a C# class with some common functions that my ASPX.CS classes can inherit from, to eliminate redundant code.
I've added an App_Code folder to my project's root directory. When I right-click on that folder in Visual Studio's Solution Explorer, then select Add, the Class option is greyed out.
Likewise, if I create a class from File > New > File, then manually put it into the App_Code folder, it's inaccessible. It'll be visible if I select Show All Files in the Solution Explorer, but right-clicking on it has Include in Project greyed-out too.
How do I create a class that my other ASPX.CS classes can inherit from?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…