CodingBlast
Programming articles about .NET, ASP.NET Core, JavaScript, TypeScript, and related developer tooling.
ASP.NET Core - Best practices (tips and tricks) - an opinionated approach - Part 1
Introduction - ASP.NET Core Best Practices This post is about ASP.NET Core best practices post. We will talk about some of the best practices while working with ASP.NET Core. It is a collection of tips and tricks, different strategies and approaches to make your code and project easier to maintain. Also, it will be more pleasant to work on the project. These include the ways to organise the solution, project, pieces of code, tips for writing tests and other things that developers deal with.
ASP.NET Core - ConfigureServices vs Configure
Introduction We already talked about Configuration method inside of Startup when we talked about requests and middleware. In this post, we will see what exactly ConfigureServices and Configure methods are for and how they differ. In ASP.NET Core we have a Startup class where all the configuration is done and processed once the application is starting.
ASP.NET Core SignalR - Simple chat
Update The code has been updated to use latest SignalR - 6 which works with ASP.NET Core 6 Link to GitHub repository: https://github.com/Ibro/SignalRSimpleChat Angular 5 version: here React.js version: here Introduction In the last post, we briefly mentioned what SignalR is all about and talked about the history of the SignalR.
ASP.NET Core SignalR Introduction
Introduction ASP.NET SignalR is a library for ASP.NET developers that simplifies the process of adding real-time web functionality to applications. Real-time web functionality is the ability to have server code push content to connected clients instantly as it becomes available, and not having the server wait for a client to ask for new data.
ASP.NET Core MVC - Custom Tag Helpers
Introduction In on of the previous posts we talked about Tag Helpers, we also talked about caching Tag Helpers and form Tag Helpers. By creating our custom Tag Helpers, we have an ability to extend existing HTML elements or create our custom HTML elements.
ASP.NET Core Razor Pages - Handler Methods
Introduction In the last post, we talked about Razor Pages. Today we will talk more about handlers. We saw that we could have our code and model either in a .cshtml file or inside of code behindfile that matches the .cshtml - .cshtml.cs file.
ASP.NET Core Razor Pages – Introduction
Introduction With ASP.NET Core 2 around the corner, the hottest new thing that we are getting is Razor Pages. In one of the previous posts, we briefly mentioned ASP.NET Core Razor Pages. Razor Pages is a new feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive.
ASP.NET Core MVC - Form Tag Helpers
Introduction We already talked about Tag Helpers, we mentioned some of the most used Tag Helpers and we also talked about caching Tag Helpers. In this post, we will talk about form Tag Helpers. HTML or Web Form is used to collect an input from the user using various HTML elements like inputs, checkboxes, radio buttons, dropdown lists, etc. When using the HTML element we are usually talking about POST request, even tho we could use GET. However, GET is recommended for short, non-sensitive, amounts of data usually used to fetch some data based on provided parameters.
ASP.NET Core MVC – Caching Tag Helpers
Introduction Caching can significantly improve our application load time and responsiveness. What can we cache with cache Tag Helpers? Well, we cache HTML content. We usually cache content that does not change frequently. In one of the previous posts, we talked about Tag Helpers. We saw what Tag Helpers do, how we can use them and we saw how do we use some of the most used Tag Helpers.
dotnet CLI - how to update a NuGet package and add a new NuGet package
Adding and updating NuGet packages via command line - dotnet CLI Just like we can add, remove and update NuGet packages via UI in Visual Studio or Visual Studio Code we can accomplish the same using the dotnet CLI.