john
john

Reputation: 35420

What's the difference between ASP.NET and C#?

What's the difference between ASP.NET and C#?

Is ASP.NET the original ASP language ported into the .NET framework and C# is an independent language that also uses the .NET framework?

Upvotes: 30

Views: 77090

Answers (3)

Vinoth Kumar
Vinoth Kumar

Reputation: 21

ASP.NET is a Framework.

Web Form divided into two pieces: the visual component and the logic. Visual components are developed using web server controls (markup language), logic developed using csharp or vb

https://msdn.microsoft.com/en-us/library/428509ah.aspx

https://msdn.microsoft.com/en-us/library/zsyt68f1.aspx

Web server controls include traditional form controls such as buttons and text boxes as well as complex controls such as tables. They also include controls that provide commonly used form functionality such as displaying data in a grid, choosing dates, displaying menus, and so on

Upvotes: 2

Darin Dimitrov
Darin Dimitrov

Reputation: 1039428

C# is a CLS programming language designed for the .NET framework. ASP.NET is part of the .NET framework allowing you to write web applications using any CLS compliant language such as C#, VB.NET, F#, ...

What you are referring to original asp language is called Classic ASP and it is not a language. It is a framework for developing web applications using VBScript and JScript languages. It is now considered deprecated technology and Microsoft recommends using ASP.NET for developing new applications.

Upvotes: 49

IAmTimCorey
IAmTimCorey

Reputation: 16755

This is a bit broad. Basically, ASP.NET is a web delivery mechanism that runs either C# or VB.NET in the background. C# is a programming language that runs ASP.NET as well as Winforms, WPF, and Silverlight. There isn't really a comparison here.

Upvotes: 10

Related Questions