Is it possible to have C# and vb.net in the same asp.net website?

后端 未结 6 1619
失恋的感觉
失恋的感觉 2020-12-06 08:11

Is it possible to have C# and vb.net in the same asp.net website? without separating in class libraries.

6条回答
  •  余生分开走
    2020-12-06 08:41

    Try this in the App_Code subfolder create 2 new subfolders, one for your C# classes and another for your VB.NET classes. After that specify these 2 folders in the web.config in the section like this:

    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Or you can create new project in other language and add referenc to it.

提交回复
热议问题