EN / USD
34 Items
 Home
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
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 First Web Application in ASP.NET Core
Create First Web Application in ASP.NET Core, Create First Web Application in ASP NET Core, first project in asp core, first project in .net, hello world in asp.net core
Hello friends, I hope you all are having fun. In today's tutorial, we will create our First Web Application in ASP.NET Core. It's our 2nd tutorial in ASP.NET Core series and in our previous tutorial, we have had a detailed Introduction to ASP.NET Core. We have also installed Microsoft Visual Studio Community Edition 2019 in our previous tutorial and today we will create our first web application in it. After creating this web application, we will also have a look at its files and will understand the contents. So, let's create our First Web Application in ASP.NET Core: Creating Web Application in ASP.NET Core First of all, start your Visual Studio which we have installed in previous tutorial. A pop up window will open up, where you can open yo ...
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
Create a New Controller in ASP.NET MVC
Create a New Controller in ASP.NET MVC, controller in asp.net mvc, add controller in mvc, new controllers in asp, asp controllers add
Hello friends, I hope you all are doing great. In today's tutorial, we are gonna Create a New Controller in ASP.NET MVC. It's 6th tutorial in our ASP.Net MVC series. We have already had a look at basic Introduction to Controllers in ASP.NET MVC and they are used to communicate between Views & Models. So, now we are gonna have a look at How to Create a New Controller in ASP.NET MVC. It's a very quick tutorial, as there's not much to do with Controller rite now, we will just create one. So, let's get started with it: Create a New Controller in ASP.NET MVC In order to Create a New Controller in ASP.NET MVC, you have to right click on the Controllers folder in Solution Explorer. Now click on the Add and then click on Controllers as shown in ...
Blog
Views in ASP.NET MVC
Views in ASP.NET MVC, views in asp, views in mvc, views in asp.net , views in asp net
Hello friends, I hope you all are doing great. In today's tutorial, we are gonna have a look at What are Views in ASP.NET MVC. It's our third tutorial in ASP .NET MVC series and in our first tutorial, we have seen How to Setup Your First Project in ASP.NET MVC and in our second tutorial, we have seen What is Model in ASP.NET MVC and I have told you about Views as well in previous tutorial. So, now we are gonna have a look at it in detail: Views in ASP.NET MVC In MVC Framework, we don't have pages or path to some html file as in php. Instead, We have to use Views in ASP.NET MVC for front end designing. We can use Html, Css, Javascript, Jquery or any other front end language in Views. There are two t ...
Blog
Validation in ASP.NET MVC
Validation in ASP.NET MVC, Validation in ASP, Validation in MVC, Validation in ASP.NET, model validation in asp
Hello friends, I hope you all are doing great. In today's tutorial, we will discuss Validation in ASP.NET MVC. It's our 14th tutorial in ASP.NET MVC series. In our previous tutorial, we have seen Model Binding in ASP.NET MVC and you have seen we have created a View for our Model class. In today's tutorial, we are gonna add some validations on the data provided by the users in those Text box fields. We will place some constraints like the age must be above 13 or the characters of name must be between 4 to 20. So, let's have a look at How to deal with Validation in ASP.NET MVC: Validation in ASP.NET MVC Validation uses built-in attribute of ASP.NET called DataAnnotations and is used to validate inputs provided by the user. Validation is a very ...
Blog
DbContext Class in Entity Framework Core
DbContext Class in Entity Framework Core, DbContext in Entity Framework Core, dbcontext in ef core, DbContext Class in asp.net core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at what is DbContext Class in Entity Framework Core. It's our 17th tutorial in ASP.NET Core series. In our previous tutorial, we have discussed Entity Framework Core in detail and have also installed it in our web application. So, now we need understand how to work with Entity Framework Core and for that we have to look at its classes & functions. So, today we will discuss one of its class named DBContext in detail: DbContext Class in Entity Framework Core EF Core contains an important class named DbContext, which is mainly responsible for communication between Database & software objects. We communicate with our database using this DbContext class ...
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 ...