VB.Net-C# integration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Madhuri Mittal

    #1

    VB.Net-C# integration

    I have a ASP.net application written in VB.Net which is
    the main application. I have another ASP.net application
    written in C#. I want to integrate the C# project files
    into the VB.net project ( without having to convert C#
    code to VB.net ) . The C# project contains few aspx pages
    and couple of C# utility classes.

    What would be the best way to integrate the C# files into
    VB.net project and run these successfully within the
    ASP.net app?

    Thanks

    Madhuri Mittal
  • Daniel Bass

    #2
    Re: VB.Net-C# integration

    you should be able to just add your C# files to the project, and as long as
    the <%@ Page directive specifies the file and language in the code behind
    page, you should have no problem.


    "Madhuri Mittal" <madhurimittal@ yahoo.com> wrote in message
    news:0a9601c35b f5$63e78be0$a10 1280a@phx.gbl.. .[color=blue]
    > I have a ASP.net application written in VB.Net which is
    > the main application. I have another ASP.net application
    > written in C#. I want to integrate the C# project files
    > into the VB.net project ( without having to convert C#
    > code to VB.net ) . The C# project contains few aspx pages
    > and couple of C# utility classes.
    >
    > What would be the best way to integrate the C# files into
    > VB.net project and run these successfully within the
    > ASP.net app?
    >
    > Thanks
    >
    > Madhuri Mittal[/color]


    Comment

    • Kevin Spencer

      #3
      Re: VB.Net-C# integration

      You can't put them in the same project. But you can have 2 projects that are
      in the same solution.

      --
      HTH,

      Kevin Spencer
      Microsoft MVP
      ..Net Developer
      All hotels in Benidorm. The best selection of Benidorm hotels with reviews and maps. Book in advance and save.

      Complex things are made up of
      lots of simple things.

      "Madhuri Mittal" <madhurimittal@ yahoo.com> wrote in message
      news:0a9601c35b f5$63e78be0$a10 1280a@phx.gbl.. .[color=blue]
      > I have a ASP.net application written in VB.Net which is
      > the main application. I have another ASP.net application
      > written in C#. I want to integrate the C# project files
      > into the VB.net project ( without having to convert C#
      > code to VB.net ) . The C# project contains few aspx pages
      > and couple of C# utility classes.
      >
      > What would be the best way to integrate the C# files into
      > VB.net project and run these successfully within the
      > ASP.net app?
      >
      > Thanks
      >
      > Madhuri Mittal[/color]


      Comment

      Working...