Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. What a load of crap!

What a load of crap!

Scheduled Pinned Locked Moved ASP.NET
javacsharpasp-netquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alvaro Mendez
    wrote on last edited by
    #1

    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.

    P D 2 Replies Last reply
    0
    • A Alvaro Mendez

      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.

      P Offline
      P Offline
      Pradhip
      wrote on last edited by
      #2

      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:

      A 1 Reply Last reply
      0
      • A Alvaro Mendez

        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.

        D Offline
        D Offline
        DFU23
        wrote on last edited by
        #3

        You can register the assembly (dll) with the gacutil.exe FYI - gacutil = Global Assembly Cache Utility

        Wally Atkins
        Newport News, VA, USA

        A 1 Reply Last reply
        0
        • D DFU23

          You can register the assembly (dll) with the gacutil.exe FYI - gacutil = Global Assembly Cache Utility

          Wally Atkins
          Newport News, VA, USA

          A Offline
          A Offline
          Alvaro Mendez
          wrote on last edited by
          #4

          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.

          D 1 Reply Last reply
          0
          • P Pradhip

            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:

            A Offline
            A Offline
            Alvaro Mendez
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • A Alvaro Mendez

              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.

              D Offline
              D Offline
              DFU23
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups