|
-
Nov 1st, 2002, 04:20 PM
#1
Thread Starter
Frenzied Member
namespaces and classes in separate files?
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...
retired member. Thanks for everything 
-
Nov 1st, 2002, 10:33 PM
#2
just use the same namespace setup in each file. It is as simple as that.
-
Nov 1st, 2002, 10:49 PM
#3
Thread Starter
Frenzied Member
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....
Last edited by markman; Nov 1st, 2002 at 10:54 PM.
retired member. Thanks for everything 
-
Nov 2nd, 2002, 11:49 PM
#4
I dont think I quite understand what yiou mean.
Maybe Im just sleepy.
-
Nov 2nd, 2002, 11:53 PM
#5
Thread Starter
Frenzied Member
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....
retired member. Thanks for everything 
-
Nov 3rd, 2002, 12:07 AM
#6
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.
-
Nov 3rd, 2002, 12:49 PM
#7
Thread Starter
Frenzied Member
I cant use CodeBwehind on the server Im on. I have to use Src="..." instead of CodeBehind="..."
retired member. Thanks for everything 
-
Nov 3rd, 2002, 03:46 PM
#8
Thread Starter
Frenzied Member
retired member. Thanks for everything 
-
Nov 4th, 2002, 03:23 PM
#9
Thread Starter
Frenzied Member
retired member. Thanks for everything 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|