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. Adding Different Classes type in a single project

Adding Different Classes type in a single project

Scheduled Pinned Locked Moved ASP.NET
csharphelptutorial
10 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.
  • K Offline
    K Offline
    khKamel
    wrote on last edited by
    #1

    I am trying to add a vb class in a project that is written in C# but i do not know how and there is no toturial how to do that help please.

    S A 2 Replies Last reply
    0
    • K khKamel

      I am trying to add a vb class in a project that is written in C# but i do not know how and there is no toturial how to do that help please.

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      You can add the vb class in a project that is written in C# by converting the class file int a dll file . You can add tht reference to the project..! Refer the link..! http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx[^]

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      K 1 Reply Last reply
      0
      • S sashidhar

        You can add the vb class in a project that is written in C# by converting the class file int a dll file . You can add tht reference to the project..! Refer the link..! http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx[^]

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        K Offline
        K Offline
        khKamel
        wrote on last edited by
        #3

        you mean i do not add the file directly? I have to add the dll file of the vb class to the project??

        S 1 Reply Last reply
        0
        • K khKamel

          you mean i do not add the file directly? I have to add the dll file of the vb class to the project??

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          Yes..!thts a good practice

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          A 1 Reply Last reply
          0
          • K khKamel

            I am trying to add a vb class in a project that is written in C# but i do not know how and there is no toturial how to do that help please.

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            You can add VB class file inside App_Code Folder with in a new folder like, App_Code > VB Class > MyVBFile.vb and create another folder ( like :CSharpClass ) where you can put all of C# class file Now, open Web.config file and do the following entry, You may have a quick look into this article,

            1 Reply Last reply
            0
            • S sashidhar

              Yes..!thts a good practice

              LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Creating DLL for each file is not a good practice. ;P . If there are multiple cs and that can be compile into a single dll. For single code file we can easily put into App_code folder with some Config file change. ;)

              S 1 Reply Last reply
              0
              • A Abhijit Jana

                Creating DLL for each file is not a good practice. ;P . If there are multiple cs and that can be compile into a single dll. For single code file we can easily put into App_code folder with some Config file change. ;)

                S Offline
                S Offline
                sashidhar
                wrote on last edited by
                #7

                Abhijit Jana wrote:

                Creating DLL for each file is not a good practice

                I never mention tht for each file..! ;P Did I?

                LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                A 1 Reply Last reply
                0
                • S sashidhar

                  Abhijit Jana wrote:

                  Creating DLL for each file is not a good practice

                  I never mention tht for each file..! ;P Did I?

                  LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                  A Offline
                  A Offline
                  Abhijit Jana
                  wrote on last edited by
                  #8

                  Don't Misunderstood me. :( As He was asking for the single file that's why I told. :-D

                  S 1 Reply Last reply
                  0
                  • A Abhijit Jana

                    Don't Misunderstood me. :( As He was asking for the single file that's why I told. :-D

                    S Offline
                    S Offline
                    sashidhar
                    wrote on last edited by
                    #9

                    LOL..!Just trying to chatting with u after a long time..!

                    LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                    A 1 Reply Last reply
                    0
                    • S sashidhar

                      LOL..!Just trying to chatting with u after a long time..!

                      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

                      A Offline
                      A Offline
                      Abhijit Jana
                      wrote on last edited by
                      #10

                      send me ur gmail id :mca_abhijit@yahoo.co.in or let me know your skype id :)

                      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