Inherits error
In the @Page directive of my aspx file, the Inherits section is causing an error. Assuming that the folder where my app resides is called "Application" and the codebehind module I'm referring to in my aspx page is called "MyModule", the directive should read:
Inherits="Application.MyModule".
The problem is, my codebehind module does not contain a Namespace referring to "Application". So the page won't compile unless the directive actually reads:
Inherits="MyModule".
BUT, every time I save the aspx file after modifying the codebehind module, Visual Studio automatically changes the directive to read:
Inherits="Application.MyModule"
I tried adding the namespace to the codebehind module, but then Visual Studio changed the line to:
Inherits="Application.Application.MyModule"
I hope I am explaining this clearly - what am I doing wrong?
Thanks in advance!
|