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. using class file from another project in asp.net project

using class file from another project in asp.net project

Scheduled Pinned Locked Moved ASP.NET
csharpc++asp-nettutorialquestion
4 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.
  • V Offline
    V Offline
    vcorn
    wrote on last edited by
    #1

    hi, i have created C# application using empty project, now i'm working on asp.net web project and i wanna use the classes i built in the previous project in my asp.net project. i remember in C++ we can use include"path" how to do this in C#? i try using"path" but failed is there any other way without having to add the C# source file to the project?

    U 1 Reply Last reply
    0
    • V vcorn

      hi, i have created C# application using empty project, now i'm working on asp.net web project and i wanna use the classes i built in the previous project in my asp.net project. i remember in C++ we can use include"path" how to do this in C#? i try using"path" but failed is there any other way without having to add the C# source file to the project?

      U Offline
      U Offline
      User 642242
      wrote on last edited by
      #2

      If you using Visual Studio just add a reference to the dll that was created in the first project. Otherwise just place the dll in the bin directory in your web project and you will be able to access the classes.

      V 1 Reply Last reply
      0
      • U User 642242

        If you using Visual Studio just add a reference to the dll that was created in the first project. Otherwise just place the dll in the bin directory in your web project and you will be able to access the classes.

        V Offline
        V Offline
        vcorn
        wrote on last edited by
        #3

        Can i make it without creating dll? as in C++ using include

        M 1 Reply Last reply
        0
        • V vcorn

          Can i make it without creating dll? as in C++ using include

          M Offline
          M Offline
          Mike Hodnick
          wrote on last edited by
          #4

          Nope, you'll need to use a DLL. - Mike ------------------------- "No human being would stack books like that." - Dr. Venkman

          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