Mixing VB.Net and C# Code in an ASP.Net Web Site project?

前端 未结 3 1019
栀梦
栀梦 2020-12-04 11:34

The question quite an older and often asked around, i have similar questions here but my question is a bit more specific.

Q1. Is it legal to mix C# and VB.Net code i

3条回答
  •  难免孤独
    2020-12-04 12:10

    It seems you can mix them within the same project is you do the piece of code you require as a control. So if the main site is in C# and you do the VB part you want as a ascx control, you can drap and drop that within your site.

    I did not realise that you could do that, but a team member worked it out on a piece of work he was doing.

提交回复
热议问题