views:

213

answers:

4
  • What is the difference between ASP.NET and C#?
  • Is ASP.NET better than C#?
  • And which language has a better labor market?
+6  A: 

C# 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).

Femaref
is ASP.net better than C# ? and which language has a better Labor market ? Thanks in Advance .
Eva
You use C# to make ASP.NET web applications. C# is neither better or worse than ASP.NET. It's like comparing a car to the road it runs on.
Arve Systad
very nice answer . Thanks Arve Systad
Eva
@Arve Systad: Very well said, *It's like comparing a car to the road it runs on*
KMan
+10  A: 

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.

Arve Systad
ASP is not a scripting language, it's a framework and you can use it with a bunch of scripting languages, VBScript being the most common followed by JScript.
svinto
Yep, but someone who's completely new to this would not necessarily understand the difference. Fixed it now though :)
Arve Systad
VBscript can be used as javascript. long before i used it to make web-pages animated.
steven spielberg
ASP is not a scripting engine either, it's a web platform. The VBScript and JScript engines are separate from the ASP platform, and they can be used outside it, as scripting languages in Windows.
Guffa
+1  A: 

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.

Oren A
@oren: -1. ASP.NET does not use C# for anything. C# is only one of the programming languages that can be used.
John Saunders
@John: I think those two sentences contradict each other.
Oren A
ASP.NET will use C# or VB.NET or F#. C# has no particular role as far as ASP.NET is concerned.
John Saunders
That doesn't contradict what I was saying. I tried to explain the relation between ASP.NET and c#, because that's what the question was about. Not between ASP.NET and all other languages. I did not pretend to give an ASP.NET overview. Just explained one in the context of the other.
Oren A
I edited my answer. I still don't think it was wrong in it's original wording. But maybe someone could have got the wrong impression. Thanks for pointing that out.
Oren A
@Oren: still not great, but no longer worth the downvote.
John Saunders
+1  A: 

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.

Guffa
ok . i get it . we write C# code into html as we write php into html code . Thanks
Eva
what version of visual C# is better and easy ? 2008 ? 2010?
Eva
@jessica: The version of C# that comes with Visual Studio 2008 is 3.0, and the version that comes with Visual Studio 2010 is 4.0. There are some new features in version 4.0, but there will be quite a lot to learn before you even would notice any difference.
Guffa