Tag Archives: ASP.NET

Using Elasticsearch with ASP.NET Core 1.0

This article shows how to use Elasticsearch with ASP.NET Core 1.0, dnxcore or dnx451. ElasticsearchCrud ASP.NET Core 1.0 RTM version is used for the Elasticsearch data access. ElasticsearchCrud supports netcoreapp1.0 and .NET with Elasticsearch 2.3.1. By supporting dnxcore50, the Elasticsearch API can now be run on windows, linux or a mac. 2016.06.30: Updated to ASP.NET […]

Using DataAnnotations and Localization in ASP.NET Core MVC

This article shows how ASP.NET Core localization can be used together with data annotations. The data annotations are used to decorate the data model, and when HTTP POST/PUT (also PATCH) Requests are sent with model errors, the error message is returned localized in the request culture. Code: https://github.com/damienbod/AspNetCoreLocalization Posts in this series ASP.NET Core MVC […]

ASP.NET Core MVC Localization

This article shows some of the ways in which localization can be used in an ASP.NET Core MVC application. Code: https://github.com/damienbod/AspNetCoreLocalization/ Posts in this series ASP.NET Core MVC Localization Using DataAnnotations and Localization in ASP.NET Core MVC ASP.NET Core using SQL Localization 2018-12-05: Updated to ASP.NET Core 2.2 and EF Core 2.2 2017-08-19: Updated to […]

ASP.NET Core 1.0 updating to beta8 from older beta versions

This post just explains some of the things you need to do when updating to ASP.NET Core 1.0 beta8 from older versions. I have updated some existing ASP.NET Core 1.0 example projects to beta8. The first thing you have to do is to update your dnvm, dnu and your dnx. This is the same as […]

ASP.NET Core multiple configurations without using environment variables

This article shows how to use multiple Json configuration files in ASP.NET Core 2.1 which can be used in CI for automatic deployment without requiring environment variables. Code: https://github.com/damienbod/AspNetCoreConfiguration 2018-06-20: Updated to ASP.NET Core 2.1 2017-08-15: Updated to ASP.NET Core 2.0 2017-07-01: Updated to VS2017 and csproj 2016-07-01: Updated to ASP.NET Core 1.0 RTM 2016-05-17: […]

ASP.NET Core 3.0 Action Filters

This article shows how the ActionFilterAttribute class can be used in an ASP.NET Core 3.0 MVC application. The ActionFilterAttribute class is an implementation of the IActionFilter, IAsyncActionFilter, IResultFilter, IAsyncResultFilter, and the IOrderedFilter interfaces. This filter can be used as a method filter, controller filter, or global filter for all MVC HTTP requests, or more precisely […]

Creating HTML themes in ASP.NET Core 1.0 using Sass

This article shows how to create HTML themes in an ASP.NET Core 1.0 angular application using Sass and grunt. The CSS themes are created using Sass, built using grunt-contrib-sass and compressed using grunt-contrib-cssmin. Angular is then used to switch the themes, using an input button. Code: https://github.com/damienbod/AspNet5ThemesSassGrunt 2016.07.01: Updated to ASP.NET Core 1.0 RTM 2016.05.16: […]

ASP.NET Core Using Protobuf Formatters

This article shows how to use and implement Protobuf as a custom InputFormatter and a custom OutputFormatter in ASP.NET Core. Protobuf can then be used in the HTTP requests and responses for serialization. Before ASP.NET Core, this was implemented in Web API using MediaFormatters. In ASP.NET Core, this has been split into IInputFormatter and IOutputFormatter. […]

Drag and drop bootstrap tabs in ASP.NET Core 1.0 with AngularJS

This article shows how to create a bootstrap tab menu with data from an MVC 6 service in an ASP.NET Core 1.0 application using Angular. The tabs can be dragged and dropped so that the position or tab order can be changed by the user. The drag and drop list is implemented using angular-drag-and-drop-lists from […]

MVC 6 ASP.NET 5 full text search with Elasticsearch (dotnet .NETCoreApp 1.0 )

This tutorial shows how to create an MVC 6 ASP.NET Core application (dotnet .NETCoreApp 1.0) which does a full text search using Elasticsearch. This application uses jQuery-UI to send the search requests and ElasticsearchCRUD (pre-release version) to send the requests to Elasticsearch. ElasticsearchCRUD supports dnxcore50 and netstandard 1.4. The source code can be found in […]