TOC

This article is currently in the process of being translated into Romanian (~47% done).

The basics:

Introduction

Bun venit la cursul de ASP.NET. Așa cum este menționat de Microsoft, ASP.NET este o tehnologie pentru construirea unor aplicații de Web puternice și dinamice și este parte a .NET Framework. Acest curs te va învăța ASP.NET de la zero și nu este necesar să ai cunoștințe de scripturi "serverside". Noțiuni de bază de HTML și CSS sunt de preferat. Cunoștințe de ASP clasic sau PHP nu vor oferi un foarte mare avantaj deoarece ASP.NET reprezintă o nouă abordare.

Limbajul de programare .NET este independent, ceea ce înseamnă că poți folosi orice limbaj compatibil cu .NET pentru crearea de aplicații. Cel mai comun limbaj de programare pentru a scrie aplicații în ASP.NET este C# și VB.NET. Pe când VB.NET derivă direct din VB (Visual Basic), C# a fost introdus împreună cu .NET și de aceea este considerat un limbaj de programare nou. Unii specialiști numesc C# "limbajul .NET" dar așa cum este menționat de Microsoft, poți avea aceleași rezultate indiferent dacă folosești C# sau VB.NET. Cele două limbaje de programare nu sunt chiar foarte diferite, și dacă ai folosit unul dintre ele iți va fi ușor să-l înveți pe celalalt. Pentru acest curs vom folosi C#.

Una din principalele diferențe între ASP.NET și clasicul ASP/PHP este faptul că ASP.NET este un limbaj compilat pe când ASP clasic este totdeauna un limbaj interpretat. PHP poate fi compilat folosind aplicații terțe comerciale dar în mod normal este de asemenea un limbaj interpretat.

De la apariția primei versiuni de ASP.NET, acesta a evoluat masiv în același timp și uneltele folosite de programatori. Vom discuta despre aceasta în următorul articol, înainte de a crea prima nostră pagină de internet

ASP.NET - modele web sau MVC?

When ASP.NET was originally released, there was only one way of doing things. Later on, Microsoft was inspired by frameworks like Ruby on Rails and added the ability to use an MVC (Model-View-Controller) approach for your ASP.NET websites. With that move, ASP.NET was basically divided into ASP.NET Web Forms (the original approach) and ASP.NET MVC. They share a lot of functionality, thanks to the .NET framework, but there are many differences in how to accomplish even the most basic tasks.

In this tutorial, we will focus on the Web Forms part of ASP.NET.

IDE or editor?

This tutorial will use the free Visual Studio Community IDE from Microsoft. Despite what some people think, ASP.NET can be used without an IDE. It would be perfectly possible to write ASP.NET code in Notepad, and use the commandline compiler included with the .NET framework. Some people might actually prefer this "back to basics" way of doing things, but I believe that ASP.NET is best programmed with a decent IDE. You can use an IDE from another vendor, and you will still be able to follow most of this tutorial. We will use Visual Studio Community since it's free, quick to install and easy to use. Besides, using a good IDE will make a lot of things faster in the long run.

Download Visual Studio Community

So, to get started with this tutorial, go ahead and download Visual Studio Community from visualstudio.com. Here's a direct link to the download page:

https://www.visualstudio.com/downloads/

As soon as you have downloaded and installed it, you are ready to proceed with the next articles, where we will create your very first ASP.NET website.

Not using Windows?

Don't worry, there's a version for macOS as well - just follow the link above and be sure to select the version of Visual Studio Community for macOS!


This article has been fully translated into the following languages: Is your preferred language not on the list? Click here to help us translate this article into your language!