Skip to main content

Posts

Showing posts from June, 2017

Dependency Injection in MVC 5

Here I am going to explain how to implement dependency injection in MVC Project in detail including separate layers for getting data through Services and Repositories. Steps Step 1: open visual studio, goto File->New->Project Step 2: Select “Web” from left menu, “ASP.NET Web Application (.NET Framework)” from Project types list and give some name to application (I am giving it as DI). Step 3: Select “Empty” template, check MVC Checkbox below and click “OK” It will take little time to create the solution. Step 4: Open Solution Explorer, it will create the folder structure as shown below. Step 5: Now we are going to create DAL (Data Access Layer), where data is available, Right Click on Solution Explorer, Goto Add->New Project… Step 6: Select “Windows” from left menu, “Class Library” from Project list, give some name (DAL), click on OK. Step 7: “Class1.cs” will be opened . Right click on Class1.cs in solution explorer, click “Re

how to integrate kendo ui in asp.net mvc

Introduction: Here I am going to explain how to integrate Kendo to MVC5. I have developed this project by taking reference by this link http://docs.telerik.com/aspnet-mvc/getting-started/asp-net-mvc-5 Before integration, let’s be ready with Kendo UI stuff. Check in your machine, whether “ui-for-asp.net-mvc” installed or not. See the below screen shot If it is not there, then follow the below steps to install it. Step 1: Goto https://www.telerik.com/account/ If you don’t have account, you can create for trail account. Step 2: Paste the below link in browser once you have logged in https://www.telerik.com/download-trial-file/v2/ui-for-asp.net-mvc it will ask download location for software. It looks like below Once after completion of the software, install it. Now we are ready with all the files required for integration of Kendo with MVC. Follow the steps below Step 1: Open visual studio, sele