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. Merge between VB & C# [modified]

Merge between VB & C# [modified]

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-nettutorial
6 Posts 4 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
    Abdullah S Abdelhay
    wrote on last edited by
    #1

    Hi all, I wonder if I can use some vb.net modules and c#.net modules in the same ASP.Net Application If yes, how can i Merge between them? and if that possible, may you please give me a simple example. Thanks Abdullah Abdelhay :)

    modified on Monday, October 11, 2010 8:05 AM

    B A A 3 Replies Last reply
    0
    • A Abdullah S Abdelhay

      Hi all, I wonder if I can use some vb.net modules and c#.net modules in the same ASP.Net Application If yes, how can i Merge between them? and if that possible, may you please give me a simple example. Thanks Abdullah Abdelhay :)

      modified on Monday, October 11, 2010 8:05 AM

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Yes sure, we can use some code written in VB and some in C# in same Asp.net application. But they must be in different files. For that, you need to have vb and c# files in different folder in App_code folder.and you need to make the entry in web.config in CODESUBDIRECTORIES tag. For details, Have a look Click here

      Cheers!! Brij My Blog
      Check my latest Article :ViewState - Various ways to reduce performance overhead

      1 Reply Last reply
      0
      • A Abdullah S Abdelhay

        Hi all, I wonder if I can use some vb.net modules and c#.net modules in the same ASP.Net Application If yes, how can i Merge between them? and if that possible, may you please give me a simple example. Thanks Abdullah Abdelhay :)

        modified on Monday, October 11, 2010 8:05 AM

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

        Hi, Hope you have got the answer from Brij's Post. I just wanted to share one of my article where I gave some good example of using this features with APP_CODE along with uses of others ASP.NET Folders Beginner's Guide to ASP.NET Application Folder [^] It may help you !

        Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

        :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

        A 1 Reply Last reply
        0
        • A Abdullah S Abdelhay

          Hi all, I wonder if I can use some vb.net modules and c#.net modules in the same ASP.Net Application If yes, how can i Merge between them? and if that possible, may you please give me a simple example. Thanks Abdullah Abdelhay :)

          modified on Monday, October 11, 2010 8:05 AM

          A Offline
          A Offline
          Abdullah S Abdelhay
          wrote on last edited by
          #4

          Hi, Thank you for your answers that worked fine but there are a small problem When you create a C# project and create App_Code and add in it for example cscode & vbcode Classes you can call vb classes in cs classes but not the opposite, if you try to call cs classes in vb classes that not work. Why? i hope that not a problem :) another question: Can we apply it on windows form applications?? :-D Thanks Abdullah Abdelhay

          modified on Tuesday, October 12, 2010 6:35 AM

          A 1 Reply Last reply
          0
          • A Abdullah S Abdelhay

            Hi, Thank you for your answers that worked fine but there are a small problem When you create a C# project and create App_Code and add in it for example cscode & vbcode Classes you can call vb classes in cs classes but not the opposite, if you try to call cs classes in vb classes that not work. Why? i hope that not a problem :) another question: Can we apply it on windows form applications?? :-D Thanks Abdullah Abdelhay

            modified on Tuesday, October 12, 2010 6:35 AM

            A Offline
            A Offline
            Ankur m
            wrote on last edited by
            #5

            Is this an answer. You should post your reply to the user's post you need to reply and not yours. He is not notified for your answer and would never know you asked him something unless, of course, he checks your answer. You may consider changing the type of the post to question and adding a reply to the user's post. :thumbsup:

            ..Go Green..

            1 Reply Last reply
            0
            • A Abhijit Jana

              Hi, Hope you have got the answer from Brij's Post. I just wanted to share one of my article where I gave some good example of using this features with APP_CODE along with uses of others ASP.NET Folders Beginner's Guide to ASP.NET Application Folder [^] It may help you !

              Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

              :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

              A Offline
              A Offline
              Abdullah S Abdelhay
              wrote on last edited by
              #6

              Hi, Thank you for your answers that worked fine but there are a small problem When you create a C# project and create App_Code and add in it for example cscode & vbcode Classes you can call vb classes in cs classes but not the opposite, if you try to call cs classes in vb classes that not work. Why? i hope that not a problem :) another question: Can we apply it on windows form applications?? :-D Thanks Abdullah Abdelhay

              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