Reg: language
-
no you cant use them in same page.
Gaurav Dudeja http://www.gdinfotechindia.com
Dont be afraid of changing your life to better ! -
You can only use one language per page, as the code-beside is compiled (either at run time or compile time) and you an only compile one language into a single assembly. However, you can have multiple pages that have different code-beside languages. If you are using the web application project model, this will not work as only one assembly is produced. Instead you must use the web site model, and specify the codeSubDirectories setting in the config file. Although, why mix c# and vb.net? It is all .Net anyway. Just pick one and stick to it. Translating code from one to the other is simple enough. If you can't do the translation yourself there are hundreds of tools and websites that can do it for you.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles] [My Website]
-
I dont think so, but yes you can use in the same project.. for that you can have different classes both C# or in VB.put it in appcode folder, make entry in web.config and now you can these classes throughout in your application. for delatills have a look in the following link Click here
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
You can only use one language per page, as the code-beside is compiled (either at run time or compile time) and you an only compile one language into a single assembly. However, you can have multiple pages that have different code-beside languages. If you are using the web application project model, this will not work as only one assembly is produced. Instead you must use the web site model, and specify the codeSubDirectories setting in the config file. Although, why mix c# and vb.net? It is all .Net anyway. Just pick one and stick to it. Translating code from one to the other is simple enough. If you can't do the translation yourself there are hundreds of tools and websites that can do it for you.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles] [My Website]
-
The Man from U.N.C.L.E. wrote:
there are hundreds of tools and websites that can do it for you.
All of which do an awful job.
Not at all, although I agree there are some terrible web sites out there. I use SharpDevelop and most of the time it translates correctly. I have to say I don't translate code that much as I just write in whatever language is appropriate, but SharpDevelop definately does the job, and does it well. Another solution would be to compile the code and use .Net Reflector to read it from the assembly. That outputs to C# or VB, along with other languages, and translates perfectly.
If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) [My Articles] [My Website]
-
Yes, you can use both language by using different master page
Farogh Haider Web developer