- What is the difference between ASP.NET and C#?
- Is ASP.NET better than C#?
- And which language has a better labor market?
views:
213answers:
4C# is a programming language, ASP.NET is a technology to create websites (together with a webserver like IIS or Apache + Mono), possibly with the use of C# or other programming languages (VB.NET comes to mind).
You can't really compare ASP.NET to C#. C# is a programming language, while ASP.NET is a framework used for building dynamic web pages. You can use C# (or VB, or other supported languages) to write applications with the ASP.NET framework. ASP.NET is a part of the .NET framework.
The Wikipedia article explains it decently.
ASP ("Classic") is an old scripting language engine web platform that supports languages like VBScript and JScript. ASP is somewhat comparable to PHP.
ASP.NET (I'm guessing that's what you mean) uses c# (for clarity: ASP.NET can use any .NET programming language. This includes also VB.NET and F#) as it's code-behind programming language. That means that in order to build an ASP.NET web site, you would write your client side with the usual JS and HTML (and maybe JQuery) , and you can also use ASP.NET controls that you'll access on the server side with c#, you will also use c# for the rest of your code behind programming. I understand from your edit that you're looking for direction as to what you should learn. Obiously I would recommend starting with c# as ASP.NET uses it and hence is broader.
ASP is a web platform, C# is a language, so you can't compare them. You can compare:
ASP.NET <-> ASP
C#, VB <-> VBScript, JScript
The development of ASP stopped many years ago, so the market for knowledge in it is rapidly shrinking.