What a load of crap!
-
I'm frustrated because something that's a no-brainer in the Java/JSP world seems impossible in ASP.NET. :mad: How does a code-behind file (.cs) access a namespace/class in another .cs file? It appears that this isn't possible -- the only way is to build the .cs file into a DLL and put that in the bin directory. Please tell me there's another way. Thanks! Alvaro
"I do" is both the shortest and the longest sentence in the English language.
-
I'm frustrated because something that's a no-brainer in the Java/JSP world seems impossible in ASP.NET. :mad: How does a code-behind file (.cs) access a namespace/class in another .cs file? It appears that this isn't possible -- the only way is to build the .cs file into a DLL and put that in the bin directory. Please tell me there's another way. Thanks! Alvaro
"I do" is both the shortest and the longest sentence in the English language.
Hi Alvaro , That's definitely the only way. But if you have vs.net its quite easy. And i don't quite think its that much of a no brainer in Java..I know people who have spent man days together to just get it all work after having put all their class files in god forsaken places with no source control. So if you have VS.NET and Source Safe its quite easy. Regards , Pradhip.S Why have parking lots in bars when drinken driving is prohibited :confused:
-
I'm frustrated because something that's a no-brainer in the Java/JSP world seems impossible in ASP.NET. :mad: How does a code-behind file (.cs) access a namespace/class in another .cs file? It appears that this isn't possible -- the only way is to build the .cs file into a DLL and put that in the bin directory. Please tell me there's another way. Thanks! Alvaro
"I do" is both the shortest and the longest sentence in the English language.
-
You can register the assembly (dll) with the gacutil.exe FYI - gacutil = Global Assembly Cache Utility
Wally Atkins
Newport News, VA, USAThanks Wally. So what you're saying is that the .cs file needs to be packaged into an assembly (DLL), but it may be placed outside the bin folder by manually registering it. :sigh: Regards, Alvaro
"I do" is both the shortest and the longest sentence in the English language.
-
Hi Alvaro , That's definitely the only way. But if you have vs.net its quite easy. And i don't quite think its that much of a no brainer in Java..I know people who have spent man days together to just get it all work after having put all their class files in god forsaken places with no source control. So if you have VS.NET and Source Safe its quite easy. Regards , Pradhip.S Why have parking lots in bars when drinken driving is prohibited :confused:
Thanks for your response Pradhip. Pradhip wrote: That's definitely the only way. But if you have vs.net its quite easy. So are you saying that VS.NET (which I'm not using, unfortunately) automatically packages stand-alone .cs files into a DLL for you? Pradhip wrote: And i don't quite think its that much of a no brainer in Java..I know people who have spent man days together to just get it all work after having put all their class files in god forsaken places with no source control. How smart are these people you know? :) All you need in Java is for the .class file (the compiled version of the .java file) to be somewhere in the classpath. Regards, Alvaro
"I do" is both the shortest and the longest sentence in the English language.
-
Thanks Wally. So what you're saying is that the .cs file needs to be packaged into an assembly (DLL), but it may be placed outside the bin folder by manually registering it. :sigh: Regards, Alvaro
"I do" is both the shortest and the longest sentence in the English language.
Yeah, You can create a class / namespace (for example, a class "WhatALoad" with a subclass "OfCrap") and build it into a DLL ... then register it on the computer with something like, gacutil Crappy.dll This makes it accessable to all other DotNet apps on that puter ... just as easy as including System.IO you could include the WhatALoad.OfCrap namespace. Not sure if there are further options too ...
Wally Atkins
Newport News, VA, USA