How can I have a namespace spread across a couple files, each containing a single class? Then one single aspx page would use all the classes when running...
Printable View
How can I have a namespace spread across a couple files, each containing a single class? Then one single aspx page would use all the classes when running...
just use the same namespace setup in each file. It is as simple as that.
But if I declare an object of a class thats in a file somewhere else in a subfolder, the framework will just search for a file that declares that class?
That doesnt seem right....
I dont think I quite understand what yiou mean.:confused:
Maybe Im just sleepy.
Say I had one file that the user views.
That file would use several classes, each being a separate file. So Class1 would be in file1, etc.
Each of these classes are in one single namespace.
This is a very simple question, for a very simple beginner....
I think I understand..hmm well I would assume that you would have to use the CodeBehind declaration at the top of the ASP.NET page for each class..question is, can you do it with more that one file per page..hmm.. May have to look into that Monday.
I cant use CodeBwehind on the server Im on. I have to use Src="..." instead of CodeBehind="..."
similar thread going on:
http://www.asp.net/Forums/ShowPost.a...1&PostID=79267
bumpity bump