In the _Layouts folder, I have added my own subfolder and placed a few aspx files with their codebehind files. However, I'm not sure what to do with the module. The module contains variables that the other files need to reference. In a normal asp.net website, I would use the app_code folder. However, this throws an error if I put it into _Layouts\myfolder like that.
I even tried converting the module into a shared public class, but that didn't work either. Alls I want is to share variables and functions between the files in my directory.
So I am asking, where do I put my module so it can be used?