EN / USD
34 Items
 Home
Blog
Create a New Model in ASP.NET MVC
Create a New Model in ASP.NET MVC, new model in asp, add model in asp.net, add model in mvc
[vc_row full_width_row="true"][vc_column][vc_column_text] Hello friends, I hope you all are doing great. In today's tutorial, we are gonna have a look at How to Create a New Model in ASP.NET MVC. It's 5th tutorial in ASP MVC series. We have already seen the basic concept of Model in ASP.NET MVC in our second tutorial. Models are used to communicate data from SQL Database to respective Controllers, which is then displayed by the Views to the user. When you are designing some professional website then it happens a lot that you need to place different data in your databases, normally this data is coming from users. So, in such cases you have to create new models and then assign respective controllers to them. So, today we will see How to do the first ...
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
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
How to include Bootstrap in ASP.NET Core
How to include Bootstrap in ASP.NET Core, How to include Bootstrap in ASP NET Core, bootsrap in asp.net core, bootsrap asp core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to include & use Bootstrap in ASP.NET Core. It's our 12th tutorial in ASP.NET Core series. As it's ASP.NET Core tutorial so I am not going to explain bootstrap much. But you must have the basic idea of Bootstrap, its a client side package of CSS libraries, designed by twitter and these days you can't design a responsive site with Bootstrap as it follows symmetry and is too easy to use. So, let's get started with How to include Bootstrap in ASP.NET Core: How to include Bootstrap in ASP.NET Core There are many third party tools ( Bower, NPM, WebPack etc. ) available in Visual Studio for installing client side applications like Bootstrap, JavaScript, ...
Blog
Dependency Injection in ASP.NET Core
Dependency Injection in ASP.NET Core, Dependency Injection in ASP NET Core, Dependency Injection ASP.NET Core, ASP.NET Core Dependency Injection
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at Dependency Injection in ASP.NET Core. It's our 7th tutorial in ASP.NET Core series. In previous versions of ASP.NET, dependency injection was not its core element, although we could have achieved it using third party packages i.e. Ninject, StructureMap etc. As ASP.NET Core is built from scratch so it was made sure that Dependency Injection should become its essential part. In our previous lecture, we have created Controller & Model for our core project. Now there's a need to connect them together and that will be done by Dependency Injection. So, let's get started with Dependency Injection in ASP.NET Core: Dependency Injection in ASP.NET Core Dependen ...
Blog
Middleware in ASP.NET Core
Middleware in ASP.NET Core, Middleware in ASP NET Core, middleware components in asp net core, asp.net core middleware
Hello friends, I hope you all are doing great. In today's tutorial, we are going to have a look at what are Middleware in ASP.NET Core. It's our 3rd tutorial in ASP.NET Core series. In order to understand the Middleware, we have to open the Startup.cs file present in Solution Explorer. In our previous lecture, we have discussed the Code in Startup.cs and I have told you thhat we will discuss the Configure method later, so now we have to understand that code first. So, first let's define middleware components and then have a look at that code: Middleware in ASP.NET Core Middleware in ASP.NET Core are simple software components used to control HTTP requests and handle both incoming requests as well as outgoing responses. Each middleware is a se ...
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 ...
Blog
ViewModels in ASP.NET Core
ViewModels in ASP.NET Core,ViewModels ASP.NET Core, asp.net core ViewModels, ViewModels in 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 ViewModels in ASP.NET Core. It's our 9th tutorial in ASP.Net Core series. We have already covered Controllers, Models & Views in our previous lectures and now it's time to understand this fourth pillar of MVC architecture. ViewModel is not an integral part of MVC architecture and can be ignored in simple projects but in complex applications, we have to use ViewModel as it adds flexibility in the project. So, let's have a look at ViewModels in ASP.NET Core: ViewModels in ASP.NET Core ViewModels in ASP.NET Core ( also called Data Transfer Objects [DTO] ) are used to send Models data from Controll ...
Blog
What is a Model in ASP.NET MVC
What is a Model in ASP.NET MVC, model in asp, model in mvc, model in asp.net, model in asp.net mvc
Hello friends, I hope you all are doing great. Today, I am going to share the second tutorial in ASP.NET MVC series and I will explain the concept of Model in ASP.NET MVC. In our previous tutorial, we have seen How to Setup Your First Project in ASP.NET MVC. So, before developing our web app, we first have to discuss some concepts in MVC Framework and Model is one of them, which we will cover in today's tutorial. So, let's get started with it: What is a Model in ASP.NET MVC ? In, ASP.NET MVC Framework structure, we have to understand 3 very simple blocks, which are: Models Controllers Views Model connects our web application with our SQL Database, it takes commands from the Controller and then get or set values in the Database an ...
Blog
Model Binding in ASP.NET MVC
Model Binding in ASP.NET MVC, model binding in asp, model binding in mvc, model binding in asp.net
Hello friends,I hope you all are doing great and having fun with your lives. In today's tutorial, we are gonna have a look at Model Binding in ASP.NET MVC. It's our 13th tutorial in ASP.NET MVC series. Today, we are gonna discuss a new concept in ASP.NET MVC and it's more of a luxury as it automates the job and makes our work easy. Suppose, in your application, you want to create a registration form and thus you need to pass this data from View to your model, so that it could be saved in your database. So, in order to bind this HTTP request data from View to Model, we use Model Binding. Let's have a look at Model Binding in ASP.NET MVC in detail: Model Binding in ASP.NET MVC Model Binding in ASP.NET MVC is used to bind the data sent by the HTTP ...