I
Ice
Good morning! My apologies if this is a dumb question - but I've had no luck
searching for an answer and am on a tight deadline, so ...
I'm working on a tiny part of a huge project that uses the Website model.
I'd like to place some code in a separate class that I can reference from
several pages, but the .cs file for the class needs to be stored outsite the
App_Code folder. (Making any changes under App_Code causes the entire site to
recompile, which takes about 4 minutes - a real problem when you're on a
deadline. Converting to a Web Application is not an option, for the same
reason.)
I'd like to place my pages in a separate folder and place the .cs file for
the class in the same folder, but I keep getting compile error "CS0246: The
type or name space name 'x y z' could not be found (are you missing a using
directive or an assembly reference?)". If I place the code for the class
inside the .aspx .cs file it finds it, but I haven't found any way to make it
work with the class in a separate file.
What do I need to make my pages recognize the class? (Please spell out the
solution in detail if you would, I'm rushing around in too many directions at
once to think straight.)
Thank you!
Lena
searching for an answer and am on a tight deadline, so ...
I'm working on a tiny part of a huge project that uses the Website model.
I'd like to place some code in a separate class that I can reference from
several pages, but the .cs file for the class needs to be stored outsite the
App_Code folder. (Making any changes under App_Code causes the entire site to
recompile, which takes about 4 minutes - a real problem when you're on a
deadline. Converting to a Web Application is not an option, for the same
reason.)
I'd like to place my pages in a separate folder and place the .cs file for
the class in the same folder, but I keep getting compile error "CS0246: The
type or name space name 'x y z' could not be found (are you missing a using
directive or an assembly reference?)". If I place the code for the class
inside the .aspx .cs file it finds it, but I haven't found any way to make it
work with the class in a separate file.
What do I need to make my pages recognize the class? (Please spell out the
solution in detail if you would, I'm rushing around in too many directions at
once to think straight.)
Thank you!
Lena