ASP.NET Core

12345678910
Dealing with MongoDB DateTime in ASP.NET Core
MongoDB is one of the popular NoSQL databases available today. You can use MongoDB database in your ASP.NET Core applications using MongoDB.Driver NuGet package. I discussed the basics of MongoDB including CRUD operations here and here. Document databases such as MongoDB store data as JSON documents. Although JSON supports basic data types such as string, number, and boolean JSON doesn't support DateTime. So, date-time values are stored as string. In this article we will discuss a few things that you need to take into account while storing date-time values.
Posted On : 20 May 2019
Create AutoPostBack tag helper in ASP.NET Core
In one of my past articles I explained how autopostback can be implemented in ASP.NET Core. If you find yourself using autopostback at many places, you can create a custom tag helper that does the job for you. To that end this article explains how that can be done. This article doesn't discuss the basics of custom tag helpers. If you are not familiar with creating your own tag helpers read this article go get some understanding.
Posted On : 13 May 2019
Store and retrieve files from Azure blob storage
ASP.NET Core web applications often need to store files on the server. One of the approaches to storing files on the server side is to store them into Azure blob storage. For example, you can store documents, audio files, video files, and images into Azure blob storage. This article shows you how to add, download, and remove files from Azure blob storage.
Posted On : 06 May 2019
Load Partial Views using Ajax in ASP.NET Core MVC and Razor Pages
In the previous article we discussed how to use partial views in ASP.NET Core MVC and Razor Pages. Although many a times you would place a partial view on a page at development time, it is also possible to load a partial view programmatically through Ajax. To that end this article shows how that can be done.
Posted On : 29 Apr 2019
Reuse UI with Partial Views in ASP.NET Core MVC and Razor Pages
While developing ASP.NET Core web applications you often need to reuse parts of the user interface across many view or razor pages. There are multiple options to address this requirement simplest being Partial Views. In this article you will learn what partial views are and how to use them in ASP.NET Core MVC and Razor Pages applications.
Posted On : 22 Apr 2019
Use Cache and Distributed Cache Tag Helpers in ASP.NET Core
Web developers often look for opportunities to boost the performance of their web applications. ASP.NET Core provides server side caching in the form of in-memory and distributed cache implementation. Moreover, it offers two Tag Helpers to implement cache HTML content of razor views or razor pages - Cache and Distributed Cache. To that end this article discusses these Tag Helpers in brief.
Posted On : 08 Apr 2019
Handle Unknown Actions in ASP.NET Core MVC
While working with ASP.NET Core MVC, usually you have known number of actions and views. At times you might come across a situation where you need to deal with actions unknown at development time. Let me briefly explain a situation I recently stumbled upon.
Posted On : 25 Mar 2019
Three Ways to Return Data from ASP.NET Core Web API
ASP.NET Core allows you to build RESTful services using web API. Typically you want to return data and HTTP status codes from an API controller. To that end there are three ways to return values from an API controller. This article discusses them with an example.
Posted On : 18 Mar 2019
Enable CORS in ASP.NET Core API
Browsers do not allow cross origin communication for security reasons. This means if an ASP.NET Core web API housed in one web app is called by JavaScript code running as a part of another web app, the communication attempt will fail. However, you can alter this default behavior by adding some configuration in your API application. To that end this article discusses how that task can be accomplished.
Posted On : 11 Mar 2019
Reverse Engineering EF Core Model and Data Validation Techniques
While working with ASP.NET Core and Entity Framework Core you need to create data model for your application. This calls for creating a DbContext class along with one or more entity classes. Luckily, EF Core allows you to reverse engineer the model from an existing database. To that end this article discusses how that can be accomplished.
Posted On : 25 Feb 2019
12345678910


Subscribe to our newsletter

Get monthly email updates about new articles, tutorials, code samples, and how-tos getting added to our knowledge base.

  

Receive Weekly Updates