EN / USD
220 Items
 Home
Blog
How to setup MVC in ASP.NET Core
How to setup MVC in ASP.NET Core, MVC in asp net core, asp net core mvc, mvc asp.net core
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at How to setup MVC in ASP.NET Core. It's our 6th tutorial in ASP.NET Core series. So far, we have covered all the basic concepts in ASP.NET Core and are now ready to get our hands on MVC. If you remember, when we were creating this project in Introduction to ASP.NET Core, we have selected Empty Template as we want to build our application from scratch. But if you want, you can also select MVC template and all these files, which we are going to create, will automatically be created in it. So, let's see How to setup MVC in ASP.NET Core: How to setup MVC in ASP.NET Core ??? MVC in ASP.NET Core is an architectural design pattern, implemented by Microsoft.AspNet ...
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
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
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
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
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
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
Introduction to Enums in C#
Introduction to Enums in C Sharp, Enums in C Sharp, Enums in C#, enums C#, c# enums
Hello friends, I hope you all are having fun. In today's tutorial, we will have a look at detailed Introduction to Enums in C#. It's our 23rd tutorial in C# series and this C# concept is quite easy one. It's normally used to give better meanings/understanding to your project. If you haven't studied lectures on C# Classes & C# Methods, then do read them first, as we are going to use them today. So, let's get started with Introduction to Enums in C#: Introduction to Enums in C# Enums in C# ( short for Enumerations ) is a value type datatype for constants, created by using keyword enum and can be controlled by the class Enum. ( keyword with small e, while class with capital E ) We can declare & implement Enums directly in C# Namespace, c ...
Blog
Introduction to Access Modifiers in C#
Introduction to Access Modifiers in C Sharp, Access Modifiers in C Sharp,Access Modifiers in C#, C# Access Modifiers
Hello friends, I hope you all are having fun. In today's tutorial, we will have a look at Introduction to Access Modifiers in C#. It's our 22nd tutorial in C# series and now it's time to have a look at access modifiers, which we have to use a lot in C#. I hope that you have already studied previous lectures i.e. C# Methods, C# Structs, C# Classes etc. as these access modifiers are used with them. So, let's get started with Introduction to Access Modifiers in C#: Introduction to Access Modifiers in C# Access Modifiers in C# are used to apply restrictions on the accessibility of C# Objects within or outside the project, and are defined in the declaration. There are 5 Access Modifiers available in C#, ...
Blog
Introduction to Delegates in C#
Introduction to Delegates in C#, Delegates in C#, Delegates C#, c# Delegates, Multicast delegates c#
Hello friends, I hope you all are doing great. In today's tutorial, we will have a look at detailed Introduction to Delegates in C#. It's our 21st tutorial in C# series and now we are entering in the complex field. C# concepts, we have studied so far, were quite simple, but now we are slowly moving towards complex topics. Delegates are not that difficult as normally considered, you just need to understand its basic idea and rest is quite simple. So, let's get started with Introduction to Delegates in C#: Introduction to Delegates in C# Delegates in C#, created by using delegate keyword, are used as a type safe pointer, normally pointing towards C# Methods & Events. The signature of the Delegate & the function ( its pointing to ) mu ...