Click to See Complete Forum and Search --> : namespaces and classes in separate files?
markman
Nov 1st, 2002, 03:20 PM
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...
Cander
Nov 1st, 2002, 09:33 PM
just use the same namespace setup in each file. It is as simple as that.
markman
Nov 1st, 2002, 09:49 PM
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....
Cander
Nov 2nd, 2002, 10:49 PM
I dont think I quite understand what yiou mean.:confused:
Maybe Im just sleepy.
markman
Nov 2nd, 2002, 10:53 PM
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....
Cander
Nov 2nd, 2002, 11:07 PM
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.
markman
Nov 3rd, 2002, 11:49 AM
I cant use CodeBwehind on the server Im on. I have to use Src="..." instead of CodeBehind="..."
markman
Nov 3rd, 2002, 02:46 PM
similar thread going on:
http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=79267
markman
Nov 4th, 2002, 02:23 PM
bumpity bump
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.