Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Just curious to know. I think I had read it somewhere few years back. Is ASP.NET written using C# or C/C++?
Posted

ASP.NET is a framework, written on top of .NET framework. .NET framework applications or services (libraries such as ASP.NET) can be written in C# or VB.NET, which are then converted to IL code as to remove the ambiguity between C#, VB.NET or Visual C++ code.

ASP.NET code that you write in C# is similar to VB.NET in every way. The performance cap is also similar, because both languages are compiled down to IL code before they are actually executed. Thus the question, "ASP.NET is written in" doesn't make any sense as a few modules may be written in either language.

.NET has gone open source, ASP.NET code would also be available on GitHub if they would publish it (or perhaps they already have had). If you have a look at the .NET Core[^] repo at GitHub, you will find the following languages being used,

1. C# 98%
2. Visual Basic 0.8%
3. C++ 0.3%
4. C 0.1%
5. Misc languages.

So from this, it is clear that Microsoft prefers to use C# as their core language for all of their frameworks. C# compiles down to IL to remove the difference between VB.NET, C# or Visual C++.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 3-Nov-15 9:25am    
5ed.
—SA
Afzaal Ahmad Zeeshan 3-Nov-15 9:29am    
Thank you, Sergey. :-)
The CLI/CLR is written in C/C++ and assembly. Almost all of the .NET framework classes are written in C# > compiled to IL, which runs in the CLR.
 
Share this answer
 
Read the right-most box from the Wikipedia[^]

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900