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. can we use C# and VB,Net in the same project??

can we use C# and VB,Net in the same project??

Scheduled Pinned Locked Moved Web Development
csharpquestion
8 Posts 3 Posters 2 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.
  • R Offline
    R Offline
    Rahithi
    wrote on last edited by
    #1

    Hi all, can we develop some webpages using C# and some using VB.Net in one project?? thaks, Rahi

    If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

    M 1 Reply Last reply
    0
    • R Rahithi

      Hi all, can we develop some webpages using C# and some using VB.Net in one project?? thaks, Rahi

      If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      >>can we develop some webpages using C# and some using VB.Net in one project?? NO.. (AFAIK) but you can use different languages for different layers.(eg: Business Object, Entity, Data Layer and etc.)

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message. Thank you.

      R T 2 Replies Last reply
      0
      • M Michael Sync

        >>can we develop some webpages using C# and some using VB.Net in one project?? NO.. (AFAIK) but you can use different languages for different layers.(eg: Business Object, Entity, Data Layer and etc.)

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message. Thank you.

        R Offline
        R Offline
        Rahithi
        wrote on last edited by
        #3

        thanks Michael. if i developed one webservice using C#, want to consume that in VB.Net web page.....how can we do taht?? i mean is it the same way, adding web reference & creating proxy...etc.,?? i am newbie to this .net technology......still in the learning stage i appreciate ur response. Thanks, Rahi

        If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        M 1 Reply Last reply
        0
        • R Rahithi

          thanks Michael. if i developed one webservice using C#, want to consume that in VB.Net web page.....how can we do taht?? i mean is it the same way, adding web reference & creating proxy...etc.,?? i am newbie to this .net technology......still in the learning stage i appreciate ur response. Thanks, Rahi

          If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          if i developed one webservice using C#, want to consume that in VB.Net web page.....how can we do taht?? i mean is it the same way, adding web reference & creating proxy...etc.,??

          It's the same way. You can do either adding webreference or generating proxy class and add it to your project. If you are using different languages for web project and web service, it's better if you put those in different solution file. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

          R 1 Reply Last reply
          0
          • M Michael Sync

            >>can we develop some webpages using C# and some using VB.Net in one project?? NO.. (AFAIK) but you can use different languages for different layers.(eg: Business Object, Entity, Data Layer and etc.)

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message. Thank you.

            T Offline
            T Offline
            Tuwing Sabado
            wrote on last edited by
            #5

            Yes, you can now mix two diffent languages like C# and VB.NET in the same project but only in .NET 2005 and per file, class or page basis. for example. You've created a C# web project in .NET 2005. By default all pages are C# but now in .net 2005 you can add a vb.net web form. Another sample how to mix two languages http://pietschsoft.com/Blog/Post.aspx?PostID=1287[^ Try it and you will amaze!!! Regards, Mark

            R 1 Reply Last reply
            0
            • M Michael Sync

              if i developed one webservice using C#, want to consume that in VB.Net web page.....how can we do taht?? i mean is it the same way, adding web reference & creating proxy...etc.,??

              It's the same way. You can do either adding webreference or generating proxy class and add it to your project. If you are using different languages for web project and web service, it's better if you put those in different solution file. Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

              R Offline
              R Offline
              Rahithi
              wrote on last edited by
              #6

              hi Michael, definitely wants to convey my thanks by voting ur message!! but i don't know how to vote for the message. i need some help for voting the messages! Thanks, Rahi

              If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              M 1 Reply Last reply
              0
              • R Rahithi

                hi Michael, definitely wants to convey my thanks by voting ur message!! but i don't know how to vote for the message. i need some help for voting the messages! Thanks, Rahi

                If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                M Offline
                M Offline
                Michael Sync
                wrote on last edited by
                #7

                >>but i don't know how to vote for the message. i need some help for voting the >>messages! u see "Rate this message: 1 2 3 4 5"? ya. this is where you can vote my message by clicking one of those numbers. (maybe 5) :)

                Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message. Thank you.

                1 Reply Last reply
                0
                • T Tuwing Sabado

                  Yes, you can now mix two diffent languages like C# and VB.NET in the same project but only in .NET 2005 and per file, class or page basis. for example. You've created a C# web project in .NET 2005. By default all pages are C# but now in .net 2005 you can add a vb.net web form. Another sample how to mix two languages http://pietschsoft.com/Blog/Post.aspx?PostID=1287[^ Try it and you will amaze!!! Regards, Mark

                  R Offline
                  R Offline
                  Rahithi
                  wrote on last edited by
                  #8

                  Thanks Mark. Excellent info. really amazing!! i will try this by implementing practically in my project. thanks once again, Rahithi

                  If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                  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