Codecademy Logo

Introduction to ASP.NET

Related learning

  • Learn how to build fast, secure, and maintainable web apps with ASP.NET and the Razor Pages architecture.
    • With Certificate
    • Intermediate.
      20 hours
  • Learn how to build fast, secure, and maintainable web apps with ASP.NET and the Razor Pages architecture.
    • With Certificate
    • Intermediate.
      20 hours

ASP.NET Core Introduction

ASP.NET Core is a versatile, cross-platform framework that equips you with a powerful set of features like dependency injection and a middleware pipeline. The foundation also integrates configuration systems for flexible application development. Perfect for building modern web applications with C#.

ASP.NET with C#

Discover ASP.NET, Microsoft’s powerful platform for web development. With ASP.NET, you can efficiently create web applications, websites, and APIs using the robust C# language, offering a modern approach to building dynamic and responsive online solutions. Leverage the combination of ASP.NET and C# to streamline your development workflow, ensuring scalable and maintainable code.

ASP.NET Core Techs

ASP.NET offers six core technologies, such as Razor Pages for building traditional web apps and MVC for enterprise systems. Blazor is used for creating interactive apps using C#, while Web API is ideal for backend services. Minimal APIs support microservices development, and MAUI enables cross-platform mobile and desktop applications.

ASP.NET Essentials

ASP.NET leverages existing C# knowledge to develop robust web applications. Its performance enhancements, cross-platform compatibility, and enterprise-ready features make it a strong choice for web development. This framework enables developers to build applications with advanced features across various platforms efficiently.

dotnet CLI Basics

The dotnet CLI is a versatile tool in ASP.NET for managing applications. It provides commands to create, build, and run apps seamlessly. For a Razor Pages app, use dotnet new razor to create and dotnet build to compile.

# Create a new Razor Pages application
$ dotnet new razor -n MyFirstRazorApp
# Move into project directory
$ cd MyFirstRazorApp
# Build the app
$ dotnet build

ASP.NET Page Files

ASP.NET uses .cshtml for HTML markup, while .cshtml.cs files manage C# logic. This setup separates presentation from business logic, promoting cleaner, organized code architecture. The .cshtml file deals with the visual aspects, and the .cshtml.cs file handles application logic.

Learn more on Codecademy

  • Learn how to build fast, secure, and maintainable web apps with ASP.NET and the Razor Pages architecture.
    • With Certificate
    • Intermediate.
      20 hours
  • Learn how to build fast, secure, and maintainable web apps with ASP.NET and the Razor Pages architecture.
    • With Certificate
    • Intermediate.
      20 hours