Author: jPe | Posted on: 5/18/2010 6:07:28 PM | Views : 479

Hi,
I am trying to re-use some VB code in my C# app but can't get them to compile together. I have read about dividing them in the App_Code folder, and I have done that and added the subfolders to web.config. However, now when I try to compile, I get an error on my VB code : a namespace does not directly contain members such as fields or methods.
I tried a very simple class:
Public Class testVB
    Public Function Hello()
        Msgbox("HI")

    End Function
End Class
and the same thing occurred. Any help is appreciated.
Also, supposing that mixing the code is okay, how would I go about calling a VB subroutine which returns 2 values from C#? Would the code have to be changed? Thanks

...

Go to the complete details ...