Hello Friends, I and one of friend are working in a same project in ASP.Net, But the problem is he is expert in VB and I am fluent in C#. Now the question is can we both work together using both the language C# and VB OR both have work in same language. I mean code of C# can be converted in VB or code of VB can be converted in C#? If it is possible then please tell me how can we do this? Please PM me Thanks in advance
Nope you can not use both the languages in the same project...because at the starting of the project you have to choose any 1 language from this 2 languages...
I am sure you are new than me in ASP.Net, any way I got my answer. download conversion tool and install it in your PC with the Dot.Net
You will have to use different assemblies. Create a class library with VB and the program code in C#. The C# code can load and use library written in VB.
Yes it can!!!!!... Kinda... But one has to be compiled! I sometimes use C# code in my VB app by adding it as a dll library another time I was modifying an existing app compiled with c# by adding CODE INLINE using vb.net also there are converters C#->VB and Vice Versa you can use to just use one language. ---- Like my answer? Like my post! Thanks
Yes, of course you can do this. You can either create separate class libraries as explained above OR you can make separate C# and VB.Net App_Code folders; <compilation debug="true" strict="true" explicit="true"> <codeSubDirectories> <add directoryName="VBCode" /> <add directoryName="CSCode" /> </codeSubDirectories> Code (markup): Lastly, there is no reason you cannot create code-behind pages with C# or VB .net
Yes, in Asp.Net i.e. Microsoft Technologies Development Services, includes Legacy application development using ACCESS and VBA
You can't use VB and C# in the same project. In visual studio The project file is either .vbproj or .csproj. you can choose any one from both.
You can use references in Visual Studio (right-click to Solution Explorer, Add Reference) for adding reference to another build (no difference, C# or VB written). Theoretically, you can create Form1 at C# and Form2 at VB. But i think, this way is not optimized, so i want recommend you use Enterprise Templates Project (u can find it in MSDN web library. You can create different blocks both in VB and C#.
I don't think that you can use both languages C# and VB togetherly in the same project as before starting the project it asks to choose any one language.
You can have 1 solution files that contains many projects and each of the individual projects can be in either VB or C#, then you can reference the each others projects (which can be classes) from a different project. So you can effectively work on different modules (Projects) under the same solution. Or you can just use a code converter to convert everything, I recommend converting the VB to C#, sometimes the conversion for C# to VB doesn't work properly.
I dont think you will be able to use c# and vb in same project in asp.net but i dont think its too difficult to code if you know any of the languages. because classes are common just little syntax difference in both the languages
At the beginning of the project you have to choose one language, either it can be VB.Net or C#. Thus, you don't need both languages simultaneously.
@noorlinks yes you may use both language in same application. Just create different folder like vb and csharp inside app_code then made changes inside .cofing you may use. I already used that one.
According to me its not possible to use both in one project you should select either c# or vb as programming language and you can use it for entire project
Just do it all in C#. Mixing different languages could get confusing and restrictive, and VB is a rather niche language anyway.
We may not use both programming languages C# and VB in same Asp.net project. The extension name of C# project file is .csproj and VB is .vbproj. I would like to suggest that choose any one programming language either C# or VB.
Yes it possible to have c# and vb.net Website project. Libraries to be shared by both languages should be placed in Appcode. There is an <Codesubcategories> setting in web config . it tells which language should be complied first.
You can not use both vb and c# within the same project - if you notice in visual studio the project files are either .vbproj or .csproj. You can within a solution - have 1 proj in vb and 1 in c#.