Answered by:
Membership using C# but others using VB.NET?

Question
-
User521171331 posted
Hi,
For the membership (user management system) , can I use C# but other development I use VB.NET?
Tuesday, July 5, 2016 7:25 AM
Answers
-
User603616845 posted
Hi,
Membership using C# but others using VB.NET?Probably need one solution with two projects in it - one C#, the other VB. If, say, VB project is your main app and C# project compiles to a class library, you should be able to add a reference to the C# project to your VB project and then make calls from VB code to C# code very easily (so method in C# that has ID as one of its arguments so that you can pass the parameter from VB - or get C# to capture image and return it and let VB sort out saving it appropriately). Define the namespaces in each project properly and, add the relevant Imports statements to your VB code to reference the C# project namespace.
All about mixing C# and VB.NET
Hope this will help you.
thanks
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 5, 2016 7:34 AM -
User1724605321 posted
Hi ngaisteve1,
I would suggest you could directly build the membership with vb code . It will make the code easier and cleaner , and avoid potential problems when mix using them. Here is how membership work in vb :
Click the navigation list on the left panel of the page , you will get a complete tutorial.
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, July 6, 2016 5:34 AM
All replies
-
User603616845 posted
Hi,
Membership using C# but others using VB.NET?Probably need one solution with two projects in it - one C#, the other VB. If, say, VB project is your main app and C# project compiles to a class library, you should be able to add a reference to the C# project to your VB project and then make calls from VB code to C# code very easily (so method in C# that has ID as one of its arguments so that you can pass the parameter from VB - or get C# to capture image and return it and let VB sort out saving it appropriately). Define the namespaces in each project properly and, add the relevant Imports statements to your VB code to reference the C# project namespace.
All about mixing C# and VB.NET
Hope this will help you.
thanks
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 5, 2016 7:34 AM -
User1724605321 posted
Hi ngaisteve1,
I would suggest you could directly build the membership with vb code . It will make the code easier and cleaner , and avoid potential problems when mix using them. Here is how membership work in vb :
Click the navigation list on the left panel of the page , you will get a complete tutorial.
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, July 6, 2016 5:34 AM