Skip to content

A collection of ASP.NET sample projects that helped me started with the technology.

Notifications You must be signed in to change notification settings

PavlosTzitzos/asp.net-samples

Repository files navigation

ASP.NET Samples

In this repository you will find many implementations of the same web apps. The differences are some implementation details, configuration details, different .NET versions and other small details but the functionality stays the same.

To Do List

  • make a project with Angular as SPA.
  • make a a project with ReactJS as Client to consume a ASP.NET WebAPI
  • try adding a project with 2FA or OAuth.
  • make a template project that uses MongoDB.
  • make another that uses PostgreSQL.
  • make a project that uses Blazor.

ERRORS Folder

In this folder there is a solution about an error that occured while working with multiple .NET versions on one machine. More errors will be added there (for now).

Project List

The projects in this repository can be categorized by .NET Framework version. These are example templates for basic configuration / setup and can be used as a guide for more advanced projects.

.NET 4.7.2

  1. FileUpload (with MSSQL, Razor Pages, MVC, File Upload)
  2. FileUploadwithModelandPreview (with MSSQL, Razor Pages, MVC, CRUD, 2xFile Upload, Preview JS function)
  3. MvcUnit (with MSSQL, Razor Pages, MVC, CRUD, Repository, Unity)
  4. OCRwithTesseract (with MSSQL, Razor Pages, MVC, CRUD, File Upload, OCR with Tesseract, Preview JS function)
  5. template_ASPNET_WEB_APP (with Oracle DB, Razor Pages, MVC, CRUD)
  6. WebApplication1 (with Oracle DB, ASPX Pages)
  7. WebApplication2 (with MSSQL, Razor Pages, MVC, CRUD)
  8. WebApplication3 (with Oracle DB, MSSQL, ASPX Pages)
  9. WebApplication5DemoDTjs (with Oracle DB, MSSQL, Razor Pages, MVC, CRUD, DataTablesJS)
  10. WebAppMvcIdentity (with MSSQL, Razor Pages, MVC, CRUD, Full Account Implementation)
  11. WebApp5Identity (same with 10 with Migrations)
  12. WebApp6UnitTestsandIdentity (same with 10 with Test Solution template)
  13. WebApp6WebAPI2 (A weird API implementation - dont even remember what this is)
  14. WebFormSiteOracleDB (with Oracle DB, ASPX Pages)

.NET 5.0

  1. MQTTnet.AspNetCore.AttributeRouting
  2. Saunter_MQTTnet_AspNet5_AttributeRouting_ExampleProject

.NET 6.0

  1. GettingStartedWithIdentityServer4.ASPNETCore (The client uses JWT token to access the API)
  2. IDServer4MqttApiClientAspNetCore (same but 2 clients access the API - console and web)
  3. ProjectsAndContainers (Sample Docker file for many projects in 1 solution)
  4. WeatherForecast (MVC Web Site + API exchange data)
  5. WebApp1CoreMVC (with MSSQL, Razor Pages, MVC, CRUD, Migrations)
  6. WebApp5CoreWebAPI (with MSSQL, Razor Pages, MVC, CRUD, Swagger Documentation)

Tutorials and sources

A collection of resources for basic features of web apps. Some do not include code.

Oracle

  1. Oracle DB v21

  2. JDBC with Oracle DB

Oracle and ASP.NET

  1. ASP.NET with Oracle DB

  2. Full tutorial

Microsoft Learn

  1. Part 7, add search to an ASP.NET Core MVC app | Microsoft Learn

  2. Connection strings and models - EF6 | Microsoft Learn

  3. Introduction to ASP.NET Identity - ASP.NET 4.x | Microsoft Learn

  4. Authentication and Authorization in ASP.NET Web API | Microsoft Learn

  5. Call a Web API From a .NET Client (C#) - ASP.NET 4.x | Microsoft Learn

  6. Create an ASP.NET Core app with user data protected by authorization | Microsoft Learn

  7. Introduction to Identity on ASP.NET Core | Microsoft Learn

  8. Mapping, customizing, and transforming claims in ASP.NET Core | Microsoft Learn

  9. Hosting ASP.NET Core Images with Docker over HTTPS | Microsoft Learn

  10. Create MVC 5 App with Facebook, Twitter, LinkedIn and Google OAuth2 Sign-on (C#) | Microsoft Learn

  11. Deploying passwords and other sensitive data to ASP.NET and Azure App Service - ASP.NET 4.x | Microsoft Learn

  12. Member access and null-conditional operators and expressions: | Microsoft Learn

  13. Razor syntax reference for ASP.NET Core | Microsoft Learn

  14. External Authentication Services with ASP.NET Web API (C#) | Microsoft Learn

  15. Compare Authentication and Authorization between ASP.NET MVC and ASP.NET Core | Microsoft Learn

  16. Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset (C#) | Microsoft Learn

  17. Claim Class (System.Security.Claims) | Microsoft Learn

  18. Understanding AD DS Design | Microsoft Learn

  19. 1 - Introduction | Microsoft Learn

  20. IEnumerable<T> Interface (System.Collections.Generic) | Microsoft Learn

  21. Video Streaming with ASP.NET (Razor pages)

  22. EntityFramework Relationships

  23. Code First Data Annotations

  24. Custom CSS Web Forms

  25. Custom CSS MVC

  26. MVC intro tutorial

  27. ASP.NET Web Forms

Compiler Errors

  1. Compiler Error CS0118 | Microsoft Learn

  2. Compiler Error CS0738 | Microsoft Learn

  3. Compiler Error CS0103 | Microsoft Learn

  4. Compiler Warning (level 3) CS0168 | Microsoft Learn

Videos

  1. Part 54 - Repository Pattern - 1 - Adding Business Layer | Step by step Asp.net MVC Tutorial - YouTube

  2. Part 56 - Repository Pattern - 3 - Dependency Injection using Microsoft Unity - YouTube

  3. Part 57 - Repository Pattern - 4- Adding DataAccessLayer and Entity framework - YouTube

GitHub Repositories

  1. ASP.NET Katana

  2. rafek/SimpleSocialAuth

About DotNetOpenAuth

  1. Web Surgeon - OpenID Authentication with ASP.NET MVC3 , DotNetOpenAuth and OpenID-Selector

  2. DotNetOpenAuth by DotNetOpenAuth

About Software Architectures

  1. General - IBM

  2. 3 Tier Architecture

  3. Microsoft Web Application Architectures

  4. BLL intro

  5. Example uses of BLL

  6. SOLID: The First 5 Principles of Object Oriented Design | DigitalOcean

C# Corner

  1. ASP NET MVC 5 Begginner's Guide - E-Book

  2. (Datatables.js and ASP.NET MVC 5 with EntityFramework , System.Linq.Dynamic example project:

  3. Using Identity In ASP.NET Core MVC Authentication

DotNetTricks

  1. Dependency Injection in ASP.NET MVC using Unity IoC Container

CodeProject

  1. Using Unity Framework in ASP.NET MVC 5 - CodeProject

  2. Areas in ASP.NET MVC 4 - CodeProject

  3. Using Unity Framework in ASP.NET MVC 5 - CodeProject

Other Tutorials

  1. DOT NET TUTORIALS (good one)

  2. ASP.NET Web API tutorial (less good)

  3. ASP.NET MVC - Razor | Tutorialspoint

  4. Razor Pages w3school reference

  5. Razor Pages - Partial Pages

  6. ASP.NET Web API tutorial

  7. Entity Framework

Example JS Tables with Code

  1. Some Tables with code