ASP.NET Core

12345678910...Last
CRUD using gRPC, EF Core, and ASP.NET Core (Part - 1)
If you have read about the new features of ASP.NET core 3.0, you are probably aware that it supports gRPC, a framework for building services using Remote Procedure Call (RPC). I won't go into the dry information about what gRPC is and how it can help you solve software problems in this article. This multipart article creates a simple yet complete example that performs CRUD operations on the Employees table of Northwind database. As you develop this example you will get chance to familiarize yourself with the basics of gRPC as implemented in .NET Core 3.0.
Posted On : 21 Oct 2019
Push data to client using ASP.NET Core Web API and Server Sent Events
Server Sent Events or SSE allow you to send push messages from the server to client. They come handy when you have a lengthy processing going on the server and want to notify the client from time to time about the status or intermediate results of the processing. In this article you will learn how SSE can be used to push data from Web API to the JavaScript client.
Posted On : 14 Oct 2019
JSON to XML / XML to JSON conversion in .NET Core
JSON is a preferred format for transferring data over the wire in modern web apps. However, at times you need to deal with XML data format. Moreover, you might want to handle JSON and XML in the same application. For example, you might be receiving data in JSON from a Web API and then you might want to feed it to another service that expects input in XML format. Such situations are common when you are integrating old and new software systems.
Posted On : 07 Oct 2019
Upload Files Using jQuery Ajax and JavaScript Interop in Blazor
Uploading files from client machine to the server is one of the fundamental operations in web applications. In ASP.NET Core MVC applications you can accomplish this task easily using HTML5 file input field and server side logic. However, Blazor doesn't have any built-in facility (so far) for uploading files. You either need to use some third-party solution or device your own technique to accomplish the task.
Posted On : 30 Sep 2019
ASP.NET Core 3.0 - Ten features beginners should know
If you are tracking the progress of ASP.NET Core, you are probably aware that .NET Core 3 and ASP.NET Core 3.0 are being released at .NET Conf 2019. There are many exciting feature additions and improvements to the latest version of ASP.NET Core. You might have already stumbled upon the prominent ones. In this article I am enumerating over ten features / improvements for beginners that are worth noting. My aim is to quickly mention them here so that you can explore them in more detail by visiting Microsoft's official channels such as product documentation and Channel 9.
Posted On : 23 Sep 2019
Utilize new data provider for SQL Server in ASP.NET Core apps
If you are developing database centric web applications for quite some time you have probably used SQL Server data provider a.k.a. System.Data.SqlClient. There are two code bases of SQL Server data provider - one that comes with .NET Framework and another that comes with .NET Core. Now Microsoft has developed a new data provider for SQL Server that is available in Microsoft.Data.SqlClient package.
Posted On : 16 Sep 2019
Change Default Location of Views and Razor Pages in ASP.NET Core
ASP.NET Core MVC web applications typically store view files under Views folder and Razor Pages are stored under Pages folder. Although this default location is what you want in most of the applications, at times you may want to store views and pages in some different folder. To that end this short article shows how to accomplish just that.
Posted On : 09 Sep 2019
Use Azure Cache for Redis in ASP.NET Core
Many ASP.NET Core application resort to caching for performance improvement reasons. I have discussed a few caching techniques in this, this, and this article. Additionally developers also use Azure Cache for Redis. It's a fully managed, high-performance in-memory caching service that you can utilize in your ASP.NET Core web applications. This article shows how.
Posted On : 02 Sep 2019
Switch-less code : An Example in ASP.NET Core
It is common in ASP.NET Core application to store one or more configuration options in appsettings.json. These options are then read inside MVC controllers or Razor Pages page models. Depending on a particular configuration setting you want to execute certain piece of processing. Although it sounds quite simple and straightforward beginners often end up doing this in a not-so-good way. To that end this article discusses a possible approach that is more flexible and helps you reduce the amount of future changes.
Posted On : 26 Aug 2019
Authorize users with Azure Active Directory in ASP.NET Core
In the previous article we discussed how to integrate Azure AD authentication in an ASP.NET Core web application. Continuing from where we left, this article shows how to authorize users based on their AD groups. First of all you need to create required groups in Azure AD and then assign one or more groups to a user account. So, open the Azure AD that you used last time and locate the Groups options as shown below.
Posted On : 19 Aug 2019
12345678910...Last


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