Merge between VB & C# [modified]
-
-
Yes sure, we can use some code written in VB and some in C# in same Asp.net application. But they must be in different files. For that, you need to have vb and c# files in different folder in App_code folder.and you need to make the entry in web.config in CODESUBDIRECTORIES tag. For details, Have a look Click here
Cheers!! Brij My Blog
Check my latest Article :ViewState - Various ways to reduce performance overhead -
Hi, Hope you have got the answer from Brij's Post. I just wanted to share one of my article where I gave some good example of using this features with APP_CODE along with uses of others ASP.NET Folders Beginner's Guide to ASP.NET Application Folder [^] It may help you !
Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer
:bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:
-
Hi, Thank you for your answers that worked fine but there are a small problem When you create a C# project and create App_Code and add in it for example cscode & vbcode Classes you can call vb classes in cs classes but not the opposite, if you try to call cs classes in vb classes that not work. Why? i hope that not a problem :) another question: Can we apply it on windows form applications?? :-D Thanks Abdullah Abdelhay
modified on Tuesday, October 12, 2010 6:35 AM
-
Hi, Thank you for your answers that worked fine but there are a small problem When you create a C# project and create App_Code and add in it for example cscode & vbcode Classes you can call vb classes in cs classes but not the opposite, if you try to call cs classes in vb classes that not work. Why? i hope that not a problem :) another question: Can we apply it on windows form applications?? :-D Thanks Abdullah Abdelhay
modified on Tuesday, October 12, 2010 6:35 AM
Is this an answer. You should post your reply to the user's post you need to reply and not yours. He is not notified for your answer and would never know you asked him something unless, of course, he checks your answer. You may consider changing the type of the post to question and adding a reply to the user's post. :thumbsup:
..Go Green..
-
Hi, Hope you have got the answer from Brij's Post. I just wanted to share one of my article where I gave some good example of using this features with APP_CODE along with uses of others ASP.NET Folders Beginner's Guide to ASP.NET Application Folder [^] It may help you !
Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer
:bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:
Hi, Thank you for your answers that worked fine but there are a small problem When you create a C# project and create App_Code and add in it for example cscode & vbcode Classes you can call vb classes in cs classes but not the opposite, if you try to call cs classes in vb classes that not work. Why? i hope that not a problem :) another question: Can we apply it on windows form applications?? :-D Thanks Abdullah Abdelhay