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: So, now we have successfully setup our MVC Middleware and now it's time to understand its components one by one. So, first let's have a look at Controller. I hope you have understood the basics of Controllers, now let's have a look at Models in MVC architecture: In today's tutorial, we have a detailed overview of MVC architecture in ASP.NET Core. This tutorial isn't complete yet as we haven't yet discussed Views in MVC, but before discussing Views, we have to first understand Dependency Injection in ASP.NET Core, which is our next tutorial. After that, we will add Views in our project. Till then take care & have fun!!!
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: We have added the dependency condition in our Dependency Injection Container. But remember one thing that we haven't yet connected Model and Controller. We have just connected a Model Class with a Model Interface. So, now let's have a look at Constructor Injection in ASP.NET Core: I know it's not making much sense rite now and is a bit difficult to understand, but no need to worry as in our upcoming lecture, we will have a look at practical implementation of these concepts. So, that's all for today, in our next lecture, we will have a look at Views in ASP.NET Core. Till then take care & have fun!!!
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: So, that was all about Environment Variables in ASP.NET Core. In the next tutorial, we will have a look at MVC architecture in ASP.NET Core. Till then take care & have fun!!!:)
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: If the middleware finds any of the above titled files in wwwroot folder, it will make that file default page or homepage. So, let's first create an index.html file in the wwwroot folder, as shown in the image on right side. In order to add this index.html file, right click on wwwroot folder and then Add > New Item. In the next window, make a search for html page and rename it to index.html. Here's the code for that HTML file, I have just added the required HTML along with an H1 tag. Now let's add the Default Page Middleware in our Configure Method in Startup.cs file. The Configure Method is shown in figure on right side & you can see that I have removed the End Points Middleware. Moreover, I have added a new Default File Middleware before Static File Middleware. This Default File 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: So, that was all about Middleware in ASP.NET Core. If you got into any trouble, then ask in comments and I will help you out. In the next article, we will have a look at How to add static files in ASP.NET Core. Till then take care & have fun!!!
Hello everyone, I hope you all are doing great. Today, I am going to share with you about "How To Calculate Liquidated Damages in Construction?" In almost all construction contracts that will be a clause that provides that the contractor will pay liquidated damages to the owner of the project in case there is a breach of contract. In construction, a breach of contract, which leads to the owner claiming liquidated damages, usually relates to a failure to complete a project in contractual time (that is, failing to complete works and handing over the house to the client at the date agreed on the contract). When calculating liquidated damages, the client bases them on a daily or weekly rate – the amount a contractor is required to pay will depend on the value of the property they are constructing. However, the client cannot use liquidated damages as a penalty, and that is why they need to learn how to calculate liquidated damages. In short, they have predetermined damages set when the contractor and owner are entering into a contract. The damages are based on actual losses the client is likely to incur in the unlikely event that the contractor does not complete a project on time. Some of the losses the client might incur have to do with: While the damages are based on a weekly or daily rate, the formulae might be more complicated in cases where there is partial possession or where the works are phased. After liquidated damages calculation, the client needs to document the method ...
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: So, rite now we have a simple working web application in ASP.NET MVC which simply prints Hello World. Now let's understand the files automatically created by Visual Studio in Empty Template: So, that was all for today. I hope you have completely understood the basic structure of our ASP.NET Core web application. In the next tutorial, we will have a look at Middleware in ASP.NET Core. Till then take care & have fun!!!
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: Let's have a look at few benefits of using ASP.NET Core: In case of Web Apis, we get JsonResult and in case of Web MVC we can get both of them. In previous versions of ASP.NET, we have separate Controller classes for Web MVC & Web API. So, that was for today. I hope you have enjoyed today's tutorial and are ready to get your hands dirty with ASP.NET Core. In our next tutorial, we will create our first project in ASP.NET Core and will write some code. Till then take care & have fun!!!
Hello friends, I hope you all are performing well in your life. In today’s tutorial, we will have a look at detailed The Role of Search Engines in Our Society. this digital world, where the most advanced technologies are shaping our lives every day, search engines have become increasingly important for our everyday life. Search engines like Google are the first place where people go to find anything and everything they need. From entertainment and fun to work, working, education, medicine, and more, search engines are our online universities and libraries of knowledge where people can get any information they need within mere seconds. Then, there's also the fact that we're exposed to information anywhere we look or go. T-shirt slogans, traffic signs, text messages, websites, newspapers, advertisements, this modern industrialized society is based on data. If we take into consideration that data is the new currency in this new virtual reality of ours, a person has a hard time keeping up with all this information. Well, one of the best ways to keep up is by understanding the importance of search engines. With such vast amounts of information we encounter every day, most people find it virtually impossible to remember all the details they need to know. Email addresses, phone numbers, figures, dates, names, the list goes on and on. They need tools to store all that information and retrieve it on demand. The internet is swarming with useful tools like Microsoft Outlook that people ...
Hello friends, I hope you all are doing great in your home. In today’s tutorial, we are going to look at a detailed Introduction to TLS, SSL, and HTTPS. Let’s break down what HTTPS, SSL, and TLS really mean, how they work, and why encryption is so important. Have you ever wondered why some web addresses are different from others? Let’s discuss it with detail. Online attacks are increasing day by day and easy to execute. Because of this, businesses around the world are heavily scrutinizing online transactions involving confidential data to ensure that customers are as secure as possible. Websites without proper security are leaving valuable digital assets vulnerable. Hackers can target customers through email phishing campaigns or intercept private information passed along through a site. All it takes is a single breach to devastate a business. If your website is not safe, secure, and reliable, users will likely avoid it. In a nutshell, the internet can be a rather dangerous place. Over the past few years, Google has taken steps to shed light on this issue and keep everyone on the websafe. Google’s large browser market share means they have a significant influence on how the Internet operates and where it’s going in the future. Visual security indicators are more apparent now than ever to equip consumers with information to decide what companies they trust with their business. (An example of a secure website from ssl.com) The very first part of every web address indicates ...