Related resources for ASP.NET Core 2.0
  • Overview Of Identity In ASP.NET Core 2.08/2/2024 4:55:35 AM. It is a membership system that allows us to add login functionality to our application. User may create account and login using credential or can use external login provider such as Google, Microsoft
  • Publish ASP.NET Core 2.0 Application on IIS7/31/2024 4:31:52 AM. It covers preparing your application for deployment, configuring IIS, setting up the hosting environment, and troubleshooting common issues to ensure a smooth and successful deployment.
  • How To Write Simple Todo CRUD ASP.NET MVC Application2/21/2024 10:53:51 AM. This article includes a lab exercise for you to demonstrate what have you learned from this training material to create your own Employee CRUD operation using EmployeeRepository
  • ASP.NET Core - Expense Manager Using EF Core And Highcharts2/20/2024 7:31:47 AM. We will create a personal expense manager using Asp.NET Core 2.1 and Entity Framework core Code first approach with the help of Highcharts to show the expense summary chart and a modal dialog to handl
  • Authentication And Authorization In ASP.NET Core 2.0 Using Azure Active Directory And OpenID Connect10/13/2021 12:24:57 AM. This article mainly covers how to setup and configure Azure AD tenant and integrating Azure AD into asp.net core 2.0 web app for authentication and role base authorization.
  • ASP.NET Core 2.0 Middleware11/23/2020 4:58:17 AM. Create a Hello World app using ASP.NET Core Middleware. Middleware components are called in the order they appear in Configure() method; i.e., the order in which they're added to the pipeline. The
  • ASP.NET Core 2.0 Empty Project11/23/2020 4:56:42 AM. In this article, we will create an empty ASP.NET Core project that doesn’t include default features, i.e., an empty shell.
  • ASP.NET Core 2.0 Dependency Injection11/23/2020 4:52:49 AM. Here e will learn how to use ASP.NET Core service container for dependency injection.
  • ASP.NET Core 2.0 Configuration11/23/2020 4:46:12 AM. ASP.NET Core has a simple mechanism to read application settings from various sources like JSON files, Environment variables or even custom data sources. It is also simple to use the settings, thanks
  • ASP.NET Core 2.0 Environments11/23/2020 4:40:18 AM. Starting from an empty project, discussed in a previous post, modify the Configure() method to use the IHostingEnvironment to call different middleware based on current environment.
  • Azure NoSQL In ASP.NET Core 2.011/23/2020 4:36:51 AM. The sample code will require you to set up an Azure account, NoSQL database and collection.
  • ASP.NET Core 2.0 Error Pages11/23/2020 4:27:39 AM. Starting from an empty project, created in a previous post, amend the Configure() method of Startup class to use middleware needed for error handling. Below I’ve used a custom middleware (defined as l
  • ASP.NET Core 2.0 Structured Logging11/23/2020 4:22:56 AM. This article is about how to work with structured logging in ASP.NET Core and Serilog
  • Azure Blob Storage In ASP.NET Core 2.011/23/2020 4:20:07 AM. In this article you will learn how to use Azure Blob storage in ASP.NET Core.
  • ASP.NET Core 2.0 Session State11/23/2020 4:17:49 AM. Using an empty project from a previous post, amend Startup class ConfigureServicee() method, and add services for session and its backing store.
  • ASP.NET Core 2.0 File Providers11/23/2020 4:15:55 AM. ASP.NET Core provides an encapsulation of System.IO.File type in order to limit the access to file systems via PhysicalFileProvider type, which is an implementation of IFileProvider.
  • ASP.NET Core 2.0 Response Compression11/23/2020 4:08:51 AM. When you’re unable to use the compression features of web servers (IIS, Apache, Nginx), ASP.NET Core provides an alternate option, Response Compression middleware. It’s performance won’t match server
  • ASP.NET Core 2.0 MVC Routing11/23/2020 4:05:21 AM. Routing in ASP.NET Core MVC is the mechanism through which incoming requests are mapped to controllers and their actions. This is achieved by adding Routing middleware to the pipeline and using IRoute
  • ASP.NET Core 2.0 MVC Model Binding11/23/2020 3:58:38 AM. In a previous post on Routing, I showed how MVC maps URLs to Controller and actions to execute. We touched on the topic of the model binding mechanism through which MVC binds routing template tokens t
  • ASP.NET Core 2.0 MVC Razor11/23/2020 3:25:47 AM. ASP.NET Core MVC middleware will find and execute the Razor template (.cshtml file) when the Controller returns ViewResult. Razor templates use syntax that combine C# and HTML to produce the final HTM
  • ASP.NET Core 2.0 MVC Layout Pages11/23/2020 3:10:53 AM. Layout page is added to the Views/Shared folder and is named (as a convention) _Layout.cshtml. There can be more than one layout pages in your application too.
  • ASP.NET Core 2.0 MVC Partial Views11/23/2020 3:08:35 AM. Partial views are special type of views that are rendered inside other views. They are useful for reusing parts of a view or splitting a large view into smaller components.
  • ASP.NET Core 2.0 MVC View Components11/23/2020 3:03:34 AM. View Components are special types of views that are rendered inside other views. They are useful for reusing parts of a view or splitting a large view into smaller components.
  • ASP.NET Core 2.0 MVC Areas11/23/2020 2:59:29 AM. Razor pages inside Areas folder can use the Layout page located outside it (e.g. in /Views/Shared folder). You can define a separate Layout page for each Area too. Yet another approach is to define a
  • ASP.NET Core 2.0 MVC Tag Helpers11/23/2020 2:51:51 AM. Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. Although they look like HTML elements and attributes, Tag Helpers are processed by Razor (
  • ASP.NET Core 2.0 MVC Custom Tag Helpers11/23/2020 2:49:23 AM. As discussed in the previous post, Tag Helpers help generate HTML by attaching attributes to existing HTML elements or by creating new elements. In this post we’ve created a new tag to display employe
  • ASP.NET Core 2.0 MVC Distributed Cache Tag Helper11/23/2020 2:45:12 AM. Cache and Distributed Cache Tag Helper help improve performance of your application by caching view’s content, either in-memory or in a distributed cache (e.g. Redis). Distributed Cache Tag Helper use
  • ASP.NET Core 2.0 MVC Filters11/20/2020 3:54:39 AM. Filter runs after an action method has been selected to execute. MVC provides built-in filters for things like authorization and caching. Custom filters are very useful to encapsulate reusable code th
  • Passing Parameters To Middleware In ASP.NET Core 2.011/20/2020 3:49:33 AM. I discussed in an earlier post that it is good practice to define middleware in a separate class and add to the pipeline using extension methods. We may also need to pass information to our middleware
  • Creating CRUD API In ASP.NET Core 2.011/20/2020 3:38:49 AM. ASP.NET Core gives a unified mechanism for creating MVC and Web API application. The key difference is that Web API will return JSON (or XML) and HTTP status codes instead of views, in order to commun
  • ASP.NET Core 2.0 Secret Manager11/20/2020 3:28:43 AM. I discussed in the previous post how configuration settings can be stored in configuration files. However, these files are checked in the source control and not suitable to store confidential settings
  • Filtering In ASP.NET Core 2.0 Web API11/20/2020 3:23:48 AM. Filtering information is usually received via query parameters. The POCO FilteringParamssimply hold this information and passes to service (or repository).
  • Paging In ASP.NET Core 2.0 Web API11/20/2020 3:18:54 AM. Paging information; i.e., page number and page size, is usually received via query parameters. The POCO PagingParams simply holds this information and passes it to service (or repository).
  • Sorting In ASP.NET Core 2.0 Web API11/20/2020 3:10:52 AM. Sorting information is usually received via query parameters. The POCO SortingParams simply hold this information and passes to service (or repository).
  • Versioning ASP.NET Core 2.0 Web API11/20/2020 12:21:27 AM. As your Web API changes, you would need to add versioning support in order for clients to continue working correctly. Adding versioning support in ASP.NET Core involves first configuring services in S
  • ASP.NET Core 2.0 Web API AND HATEOAS11/20/2020 12:16:32 AM. The idea behind HATEOAS (Hypermedia As The Engine Of Application State) is to transfer links in the resource representations. The sample demonstrates how links can be provided for a collection and ind
  • Handling Concurrency In ASP.NET Core 2.0 Web API11/19/2020 11:50:09 PM. We add a magic value to the response based on data we hold at the time. Usually ETag header is added for this purpose containing hashed value based on data/body of response.
  • ASP.NET Core 2.0 Tag Helper Component11/19/2020 11:45:29 PM. In case you’re wondering if the solution above is missing a Tag Helper for head HTML element, it’s not. ASP.NET Core team has provided us with two built-in Tag Helpers, one targets head and the other
  • Formatters In ASP.NET Core 2.0 Web API11/19/2020 11:33:04 PM. Let us learn about formatters used in ASP.NET Core 2.0 Web API.
  • Documenting ASP.NET Core 2.0 Web API11/19/2020 11:26:12 PM. Documents generated by Swagger can include XML documentation.
  • Consuming ASP.NET Core 2.0 Web API Using HttpClient11/19/2020 11:21:57 PM. We’ll create a library to wrap the functionality of HttpClient. I’ll use builder pattern for this purpose. Add a class with methods for storing parts of HttpClient.
  • Asynchronous Messaging Using ASP.NET Core 2.0 Web API11/19/2020 11:15:45 PM. How to implement asynchronous messaging using ASP.NET Core Web API. Create an empty project and update the Startup class to add services and middleware for MVC.
  • ASP.NET Core 2.0 Identity11/11/2020 12:21:33 AM. In a previous post, I showed how to use cookie authentication middleware to protect your web application. ASP.NET Core also provides a richer set of services, called Identity, to work with user authen
  • ASP.NET Core 2.0 Bearer Authentication11/5/2020 4:54:17 AM. Bearer Tokens (or just Tokens) are commonly used to authenticate Web APIs because they are framework independent, unlike something like Cookie Authentication that is tightly coupled with ASP.NET Core
  • Upload/ Download Files In ASP.NET Core 2.05/6/2020 5:38:26 AM. ASP.NET Core MVC model binding provides IFormFile interface to upload one or more files. upload file in ASP.NET Core MVC, upload file in ASP.NET Core, upload file in ASP.NET Core 2.0, upload file in M
  • ASP.NET Core 2.0 JWT Authentication Example1/29/2020 6:18:33 PM. In this article, you will learn about ASP.Net Core 2.0 JWT Authentication with an example.
  • Contact Application - Upgrade ASP.NET Core 2.0 To 2.111/26/2018 9:33:08 AM. In this article, we will look into steps for contact application - upgrade Asp.net Core 2.0 to 2.1. Previously we have used Asp.net Core 2.0.3 for contact application, now upgrade to Asp.net Core 2.1.
  • Generating Documentation For Web API 2.09/4/2018 8:42:12 AM. This article focuses on how to generate the documentation to the user of a Web API that gives the feel similar to WSDL.
  • CRUD Operations Using ASP.NET Core 2.0 And In-Memory Database With Entity Framework8/16/2018 9:42:27 AM. In this article, we will create a Web API with the in-memory database using Entity Framework and ASP.NET Core 2.0 without any theoretical explanation.
  • Using DotNet Watcher8/3/2018 2:09:10 PM. This is a feature which can be used on the command line to watch our web application. Whenever a C# class is modified and saved, it automatically re-compiles and re-runs whatever command we pass into
  • Authentication Using External Providers (Hotmail)7/18/2018 2:12:27 PM. This article will guide the reader to set up authentication using a Hotmail account in ASP.Net Core 2.0.
  • Hosting ASP.NET Core 2.0 Application In Docker7/12/2018 12:28:58 PM. In today's article, we will create an ASP.NET Core 2.0 MVC web application with docker support and then we will deploy our application in a docker container(Windows 10).
  • Azure AD B2C With ASP.NET Core 2.05/29/2018 12:48:05 PM. In this writeup, I’ll demonstrate how to use Azure AD B2C to delegate identity and access management to Azure. One of the key difference is that we will not pre-register users in Azure AD using Azure
  • Azure AD With ASP.NET Core 2.05/25/2018 10:05:32 AM. In this and the next post I’ll demonstrate how to use Azure AD to delegate identity and access management to Azure, simplifying our application.
  • ASP.NET Core - CRUD Using Angular 5 And Entity Framework Core5/18/2018 1:34:54 AM. CRUD Operations in ASP.NET Core application using Angular 5 , Web API and Entity Framework Core DB first approach with the help of VS 2017.
  • Setting Up Two-Factor Authentication In ASP.NET Core 2.05/17/2018 1:38:23 AM. This article guides you on how to set up two-factor authentication using ASP.NET Core 2.0.
  • Build Persisting Layer With ASP.NET Core 2.0 And EF Core 2.0 Using Code First Approach5/15/2018 3:27:11 PM. I wrote this article when framework Core 1.0 was introduced as a stable version. But now, we have a lot of changes in the current version Core 2.1.
  • ASP.NET Core - Using Highcharts With Angular 55/3/2018 10:45:41 AM. We will create an online poll application using ASP.NET Core, Angular 5 and Entity Framework Core. The Poll results will be displayed as a column chart, created using Highcharts.
  • All About Tag Helpers In ASP.NET Core 2.04/11/2018 1:44:00 PM. This article will provide insight about the tag helpers in the terms of what, where and how.
  • ASP.NET Core 2.0 User Role Base Menu Management Using Dependency Injection4/3/2018 12:20:14 AM. In this article we will see in detail how to display role based dynamic menu after user logs in. For this we will create a Menu Master table and insert few records to display the menu and URL to menu
  • File Logging And MS SQL Logging Using Serilog With ASP.NET Core 2.03/22/2018 9:35:21 AM. In this article, you will learn File Logging and MS SQL Logging using Serilog with ASP.NET Core 2.0.
  • All About Pages In ASP.NET Core 2.03/17/2018 11:19:21 AM. This article is about @Page and all the different kinds of pages which come by default with ASP.NET Core 2.0 template.
  • Getting Started With ASP.NET Core 2.0 Identity And Role Management3/17/2018 3:10:48 AM. In this article, we will see in detail how to use ASP.NET Core Identity in MVC Application for creating user roles and displaying the menu depending on user roles.
  • Mapping Similar Objects In ASP.NET Core 2.03/13/2018 10:17:53 AM. This article is about mapping similar objects of two different classes with reduced lines of code using ASP.NET Core Automapper.
  • Authentication Using Twitter In ASP.NET Core 2.03/12/2018 6:17:56 AM. In this article, we are going to look into authentication of ASP.NET Core app using Twitter.
  • Authentication Using Google In ASP.NET Core 2.03/12/2018 6:17:50 AM. In this article, we are going to look into authentication of ASP.NET Core app using a Google account.
  • Dependency Injection In ASP.NET Core 2.03/6/2018 10:18:18 PM. In this article, we will see in detail how to use Dependency Injection in ASP.NET Core 2.0.
  • Authentication Using Facebook In ASP.NET Core 2.03/6/2018 9:25:48 AM. In this article we are going to look into authentication of ASP.NET Core app using a Facebook account.
  • Authentication Using LinkedIn In ASP.NET Core 2.03/4/2018 5:12:35 AM. In this article, we are going to look into authentication of ASP.NET Core app using a LinkedIn account.
  • ASP.NET Core 2.0 Project Structure And A Few Important Folders/ Files2/26/2018 10:14:28 AM. Despite having been widely accepted as a development platform, ASP.Net was facing a big challenge in that it is only made for Windows servers and can only be executed on IIS.
  • All About Appsettings.json In ASP.NET Core 2.02/19/2018 4:31:39 PM. This article talks about the use of maintaining multiple configuration files for a single solution file and how to do this.
  • Publish ASP.NET Core 2.0 Application On Azure With SQL Services2/15/2018 2:54:26 PM. In this article, we will learn how to deploy or publish an Asp.Net Core 2.0 application on Azure.
  • Cookie Authentication With ASP.NET Core 2.02/7/2018 4:31:12 PM. Authentication is an integral part of web security. ASP.NET Core provides multiple ways to implement authentication in a web application. We will be looking into on such technique - Cookie authenticat
  • Versioning ASP.NET Core 2.0 Web API - Part One1/25/2018 12:07:40 PM. In this article series, we are going to explore REST API versioning best practices. At the end of the article series you will be able to pick the best solution for your project needs.
  • ASP.NET Core 2.0 - Implementing A Third Party Web API1/22/2018 2:42:06 PM. A common task for a developer when working with or building an application is implementing and interacting with APIs. In this post we will look at what an API is. We will then move onto creating our o
  • ASP.NET Core 2.0 - Applying Bootstrap Template1/18/2018 12:09:41 PM. This article walks you through the steps for creating an ASP.NET Core 2.0 Web Application using Bootstrap as the template for layout.
  • Deploying ASP.NET Core 2.0 App To Azure Using Docker1/18/2018 12:08:04 PM. Azure provides a highly scalable, configurable and easy to use Platform-as-a-Service (PaaS) environment for our ASP.NET Core web applications. Azure Web App is one of the simplest ways to host web app
  • Deploy Your First ASP.NET Core 2.0 App In Azure Managed Kubernetes1/17/2018 5:01:43 PM. This guide will help you to get started with AKS. We are going to deploy our first ASP.NET Core 2.0 App in AKS and then do some cool stuff like scaling up and down.
  • Custom Model Binding In ASP.NET Core 2.01/17/2018 3:53:30 PM. In an earlier post I discussed how to prevent insecure object references by encrypting the internal references (e.g. table primary keys) using Data Protection API. To avoid duplication of code that en
  • Identity Server 4 With ASP.NET Core 2.01/17/2018 1:09:01 PM. OAuth 2 provides several flows or grant types for various use cases. I personally group them into two categories; flows that require user interaction with authorization server and flows that don’t.
  • Create Your First ASP.NET Core 2.0 Service Fabric Container Application In Windows1/16/2018 6:19:01 PM. Learn how to create your first ASP.NET Core 2.0 Service Fabric Container application in Windows.
  • Using CSP Header In ASP.NET Core 2.01/15/2018 5:57:45 PM. Content Security Policy (CSP) is an additional level of security that could help prevent Cross Site Scripting (XSS) attacks. In these attacks malicious scripts are executed on user’s browser since bro
  • ASP.NET Core 2.0 - How To Use Dependency Injection1/15/2018 4:22:56 PM. In this article, I'll show you the new feature introduced in ASP .NET Core that allows you to inject dependencies directly into a View using the dependency injection container.
  • Deploying ASP.NET Core 2.0 MVC Application To Microsoft Azure Web App Using Bitbucket1/15/2018 12:58:51 AM. In this video will see how to deploy an ASP.NET Core 2.0 MVC web application to Azure Web App using Bitbucket.
  • Preventing CSRF Attacks In ASP.NET Core 2.01/12/2018 12:05:49 PM. OWASP 2013 classifies Cross Site Request Forgery (CSRF) as one of the Top 10 risks and is present if attacker can force the victim's browser to send forged request to your web application and it c
  • ASP.NET Core 2.0 Status Code Pages1/11/2018 6:33:54 PM. Exception handling middleware (as discussed here) will catch unhandled exceptions however if you want to display error pages for individual HTTP status codes then framework provides another middleware
  • Preventing Insecure Object References In ASP.NET Core 2.01/10/2018 11:09:45 PM. How to prevent insecure direct object reference in ASP.NET Core.
  • Preventing Redirect Attacks In ASP.NET Core 2.01/10/2018 11:07:32 AM. When your controllers redirect to another location based on user input (e.g. via query string), it is important to ensure that the location is not malicious and prevent open redirect attacks. The simp
  • Hashing In ASP.NET Core 2.01/9/2018 10:41:29 AM. The new Data Protection API in .NET Core includes functionality to create hashes using PBKDF2algorithm. ASP.NET Core uses this behind the scenes in PasswordHasher class, which is used in ASP.NET Core
  • Using HTTPS In ASP.NET Core 2.01/5/2018 12:34:28 PM. Create an empty project and update Startup to add services and middleware for MVC, including the filter for HTTPS.
  • CORS In ASP.NET Core 2.01/4/2018 12:44:30 PM. To allow clients from a different origin to access your ASP.NET Core Web API, you’ll need to allow Cross-Origin Requests (CORS). Here same origin means clients who have identical schemes, hosts and po
  • ASP.NET Core 2.0 Authorization1/4/2018 11:36:26 AM. Authorization is about deciding permissions users have and resources they can access. In ASP.NET Core this is achieved by first assigning claims to the user and then based on those claims defining pol
  • ASP.NET Core 2.0 Cookie Authentication1/2/2018 10:29:58 AM. Cookie Authentication allows developers to hook into events at various lifecycle stages of the authentication process. For instance you could log successful sign-ins using OnSignedIn or use OnValidate
  • Security In ASP.NET Core 2.012/1/2017 12:14:08 PM. Securing your web applications with ASP.NET Core 2.0
  • Angular 5 App With ASP.NET Core 2.0 Web API11/26/2017 4:15:47 AM. Today, we will see one of the simplest ways to create an Angular 5 app & how to integrate it with ASP.NET Core 2.0 Web API. So, let’s start by having a look at what are the steps involved in creat
  • Azure Table Storage In ASP.NET Core 2.011/14/2017 6:15:47 PM. Add a class to encapsulate storage access. Add a private helper method to access storage
  • ASP.NET Core 2.0 MVC Dependency Injection In Views11/2/2017 8:31:09 PM. In ASP.NET Core dependency injection is not limited to middleware, controllers and models etc. Views can also benefit from the services configured in the service container.
  • Running ASP.NET Core 2.0 Via Mono10/30/2017 11:15:05 AM. In this article, you will learn how to run your ASP.NET Core 2.0 project via Mono . Most of time , we will use .NET Core CLI to run our ASP.NET Core web application , such as dotnet run and dotnet xxx
  • Logging Framework In ASP.NET Core 2.010/29/2017 2:48:28 PM. Logging is a very critical and essential part of any software. It helps us in the investigation of the essence of problems. Before ASP.NET Core, we had to use third party libraries for logging our app
  • ASP.NET Core 2.0 MVC [Remote] Validation10/27/2017 11:33:51 AM. In this article, you will learn about ASP.NET Core 2.0 MVC [Remote] Validation.