ASP.NET Core MVC
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 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.