Thoughts on .Net & Coding
.Net Articles, tutorials, reviews, code and more...
Group Dropdown list items in ASP.NET Core
Displaying a list of options in a dropdown list or a listbox is quite common in ASP.NET Core forms. You can use the Select Tag Helper to render a <select> element and its options. If you want to display a large number of options to choose from, it would be better to group those options to make it easier for the end user to make the selection. In this article we will learn two ways to group dropdown list items.
Display Checkbox and Radio Button table column in AspNet Core
Displaying data in tabular or grid format is quite common in web applications. At times you want to display a column as a series of checkboxes or radio buttons such that a user can indicate a boolean selection. In this article we will discuss a possible approach to accomplish that task.
Perform CRUD operations on JSON data using SQL Server and EF Core -- Part 2
In the previous part of this article we created the Projects table and EF Core classes. Now it's time to create a Web API that performs the CRUD operations on the Projects table.
Perform CRUD operations on JSON data using SQL Server and EF Core -- Part 1
Non-relational data is quite common these days. Such a non-relational data is often stored in JSON format. There are database engines available that process JSON documents and allow you to work with data using specialized libraries designed for that purpose. However, at times you need to work with relational and non-relational data together in the same application.
Pass a JSON Web Token (JWT) to minimal API using fetch()
In the previous article we learned to call Web API and minimal API using fetch(). Many a times your APIs are secured using JSON Web Token (JWT) based authentication scheme. And you need to pass the JWT while making API calls. In this part of the article we will learn to do just that.
Call ASP.NET Core Web API and Minimal API using fetch() -- Part 2
In the previous article we created a Web API controller and minimal APIs that perform CRUD operations on the Customers table. Now it's time to call our APIs from our UI. We could have used a plain HTML page for housing the UI elements but we will use the same MVC view that we have created in the previous examples of this series.
Call ASP.NET Core Web API and Minimal API using fetch() -- Part 1
CRUD using fetch() and ASP.NET Core MVC
In the previous article we completed the Razor Pages example that uses fetch() to perform CRUD operations. You can use the same technique to call ASP.NET Core MVC controller actions. In this article we will migrate our Razor Pages code to MVC.
CRUD using fetch() and Razor Pages in ASP.NET Core -- Part 2
In the previous article we created various page handlers that are supposed to be called from the client side script using fetch() method. Now it's time to build the UI by adding the fetch() calls and client side event handlers.
CRUD using fetch() and Razor Pages in ASP.NET Core -- Part 1
In the previous article we discussed the basics of the browser's fetch() API. We also fetched HTML page from the server using GET verb. Now it's time to do something more interesting -- CRUD operations using fetch() and Razor Pages.