core tutorial

Tag Helper Syntax for View Components – Website Design Article

Calling view components in ASP.NET Core views may lead to long and ugly code lines containing generic type parameter of view component and anonymous type for InvokeAsync()method parameters. Something my readers have been interested in for a long time is the tag helper syntax for view components. ASP.NET Core Pager Example Suppose you have pager implemented as view component and there’s support for multiple views. public class PagerViewComponent : ViewComponent { public async Task<IViewComponentResult> InvokeAsync(PagedResultBase pagedResult, string viewName = “Default”) {…

Read More

ASP.NET Core Response Compression – DZone Web Dev – Website Design Article

ASP.NET Core supports response compression. From popular algorithms, gzip and Brotli are supported. Those who like can also implement their own response compression providers. This blog post shows how response compression works in ASP.NET Core. With ASP.NET Core we have three options for compression: ASP.NET Core does the compression. The ront-end web server does the compression. Static files are precompressed. We can skip the second and third options here because we are interested in how ASP.NET Core carries out response compression.…

Read More

Advanced Basics: Bootstrap 4 With ASP.NET Core TagHelpers – Website Design Article

The title of this post, Advanced Basics, takes the basics and fundamental concepts of what a developer has learned, whether it be a technique or library, and extends it exponentially to advance it to be something more efficient and useful for future projects. We kick this post off by combining some Bootstrap with ASP .NET Core TagHelper goodness to provide a worthy post (maybe even a series? See below for more). With Bootstrap being the dominant CSS library for grid…

Read More