EN / USD
34 Items
 Home
Blog
URL Routing in ASP.NET Core
URL Routing in ASP.NET Core, URL Routing in ASP NET Core, URL Routing ASP.NET Core, asp net core URL Routing, attribute routing in asp core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at URL Routing in ASP.NET Core. It's our 11th tutorial in ASP.NET Core series and it's an important but quite easy concept to understand. You must be wondering how we are routing rite now as we haven't added any routing codes yet. But if you remember, we have used MVC with default route middleware in our pipeline and this middleware automatically sets up this default URL routing for our web application.  So, let's understand how this URL Routing works in ASP.NET Core: URL Routing in ASP.NET Core URL Routing in ASP.NET Core is used to provide the controller's action method to the incoming HTTP request. In simple words, when a user enters an HTTP URL in its ...
Blog
How to Increase EF Core Performance for Saving Multiple Entities?
How to Increase EF Core Performance for Saving Multiple Entities, savechanges vs bulksavechanges, bulksavechanges method, bulksavechanges ef core, ef core multiple data, ef multiple entities
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to Increase EF Core Performance for Saving Multiple Entities? EF Core works well for simple CRUD operations but for saving multiple entities EF Core provides poor performance. So, today we will use a third-party EF Core extension named "Z.EntityFramework.Extensions.EFCore", designed by ZZZ Projects, which will increase the EF Core performance significantly. I will be using a BulkSaveChanges Method of this library which is specifically designed for saving bulk data in an SQL database. ZZZ Projects is a trusted company and has designed numerous .NET libraries, a few having downloads in millions. So, you can completely trust this extension library. Here' ...
Blog
URL Routing in ASP.NET MVC
URL Routing in ASP.NET MVC, url routing in asp, routing in mvc, url routing in asp.net, routing in asp.net
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at URL Routing in ASP.NET MVC. It's the 8th tutorial in this ASP.NET MVC series. Today's tutorial is on a new concept in asp.net and it's essential to understand URL routing before going any further. URL Routing is actually a part of core ASP.NET but MVC applications also use it. URL Routing is implemented by System.Web.Routing and ASP.NET MVC uses System.Web.Routing. So, let's have a look at what's URL Routing in ASP.NET MVC: URL Routing in ASP.NET MVC URL Routing is used for directing the HTTP request (generated by the user) to the respective controller in ASP.NET MVC. Whenever a user types some url in the browser and hit enter then an HTTP request is ge ...
Blog
Introduction to ASP.NET Core
Introduction to ASP NET Core, asp.net core, asp core, basics of asp.net core
Hello everyone, I hope you all are doing great. Today, I am going to start this new series on ASP.NET Core and it's our first tutorial in this series. I will start from basics and will slowly move towards complex concepts. So, if you haven't worked on ASP.NET then you don't need to worry about that but you must have some basic knowledge of C# and object oriented programming. I will use Visual Studio 2019 for these tutorials, it's community version is free to use and I will use C# language for developing ASP.NET Core web applications. So, let's first have a look at what is ASP.NET Core: Introduction to ASP.NET Core ASP.NET Core (originally deemed as ASP.NET xNext & was going to named as ASP.NET 5) is ...
Blog
Environment Variables in ASP.NET Core
Environment Variables in ASP.NET Core, Environment Variables in ASP NET Core, Environment Variables ASP.NET Core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to use Environment Variables in ASP.NET Core. It's our 5th tutorial in ASP.NET Core series. In our Startup.cs file, you must have seen that we have an IF Condition at the start and this IF Condition has IsDevelopment in it. This condition is actually checking the environment of our web application. So, here we will first discuss them and then will see why we need them. So, let's get started: Environment Variables in ASP.NET Core ASP.NET Core has 3 builtin Environments, which decides the Run-time operating environment of the web application, which are: Development. Staging. Production. In order to set this Environment Variable, we need to ...
Blog
Create a Custom Filter in ASP.NET MVC
Create a Custom Filter in ASP.NET MVC, create new filter in asp, custom filter in asp, custom filter in mvc, custom filter in asp.net
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to Create a Custom Filter in ASP.NET MVC. It's our 10th tutorial in ASP.NET MVC series. In our previous tutorial, we have cleared our concepts about Filters in ASP.NETMVC and we have also implemented one built-in filter of ASP.NET MVC. Now, its time to have a look at How to Create a Custom Filter in ASP.NET MVC, in which you can specify your own authentications or handling etc. In our ASP.NET applications, we have use custom built filters a lot for different purposes. So, let's have a look at How to Create a Custom Filter in ASP.NET MVC: Create a Custom Filter in ASP.NET MVC In ASP.NET MVC, custom filters are handled by a base class named as ActionFil ...
Blog
Create a Registration Form in ASP.NET Core
Create a Registration Form in ASP.NET Core, Registration Form in ASP.NET Core, sign up form in asp.net core, asp.net core sign up form, sign up form asp.net core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to Create a Registration Form in ASP.NET Core. It's our 13th tutorial in ASP.NET Core series. In our previous lecture, we have seen How to use Tag Helpers in ASP.NET Core and have also discussed link, image & environment Tag Helpers. Today, we will have a look at Form Tag Helpers and with their help we will design a simple Registration Form in ASP.NET Core. It will be a quite lengthy tutorial so if you got into any trouble, then ask in comments. So, let's create our Registration Form: Create a Registration Form in ASP.NET Core Let's create a new action method named Registration, in our Home Controller clas ...
Blog
Form Validation in ASP.NET Core
Form Validation in ASP.NET Core, Validation in ASP.NET Core, Validation ASP.NET Core, asp.net core validation, validation attributes in asp.net core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at Form Validation in ASP.NET Core. It's our 15th tutorial in ASP.NET Core series. In our previous lecture, we have created a Registration Form for our engineering website. But we haven't added any validations on the submitted data. So, even if users don't fill any boxes and just hit the Register Button, a new user will be created without any personal info. So, today we will place some checks on these text boxes to validate the user submitted data. So, let's get started with it: Form Validation in ASP.NET Core Validations in ASP.NET Core are available in the form of attributes & Tag Helpers. Validation Attributes are applied on Properties in Model clas ...
Blog
Controllers in ASP.NET MVC
Controllers in ASP.NET MVC, Controllers in ASP.NET, Controllers in MVC, Controllers in ASP
Hello friends, I hope you all are doing great. In today's tutorial, I am going to give you a detailed overview of Controllers in ASP.NET MVC. It's the fourth article in ASP Web App Series. In our Previous tutorial, we have had a look at Views in ASP.NET MVC and in that tutorial, we have mentioned this Controller a lot and today we are gonna discuss it in detail. Controllers acts as a messenger in ASP.NET MVC Web App, it takes message or data from place to another. I have also shared a video at the end of this tutorial and I would suggest you to watch it once to get better understanding of controllers. So, let's get started with Controllers in ASP.NET MVC: Controllers in ASP.NET MVC Controller is the back bone of any ASP.NET MVC Web App as it ac ...
Blog
How to handle Static Files in ASP.NET Core
How to handle Static Files in ASP.NET Core, static files in asp.net core, asp.net core static files
Hello friends, I hope you all are having fun. In today's tutorial, we are going to have a look at How to handle Static Files in ASP.NET Core. It's our 4th tutorial in ASP.NET Core series. If you inspect your localhost page displaying Hello World, then you will see that there isn't any HTML code in it. Instead, it's just displaying Hello World in text format. In today's tutorial, we will have a look at How to add HTML, JavaScript, CSS or any other static file in ASP.NET Core. In our previous tutorial, we have discussed Middleware in ASP.NET Core, so if you haven't studied that then have a look at it first, as we are gonna use some new middleware components today. So, let's get started: How to handle Static Files in ASP.NET Core By default, ASP.N ...