Host Your Own NuGet Server or How To Create Local NuGet Server

I have recorded a video showing how to use and configure local nuget server. After watching this video you will able to learn > How to create own nuget server application. > How to host created application to IIS > How to create nuget package and push to local/ your own nuget server. > How

Read More

Sample ASP.net MVC 4 project showing how to perform search or filter from collection of data (requested by folk)

Download Sample project from following link (Project Type: VS 2012 ASP.net MVC4) http://sdrv.ms/14hsdoO One of my folk requested to me to make a sample project on ASP.net MVC to show how to filter record from table. Here is the request from him; Search by (LastName, FirstName, etc.. this value should be in a dropdown) —-

Read More

Kendo Grid in Action

Download Kendo_Grid_In_Action.zip – 5.5 MB Content Introduction Background Where we use grid/table Before Starting with Kendo Grid Kendo Grid in Action Applying Kendo Grid on existing HTML Table Paging, sorting, filtering using Kendo Grid Resizing Kendo Grid Creating grid from JSON Data Rebind Kendo Grid with JSON Data Adding new row to Kendo Grid Getting

Read More

A curry of Dependency Inversion Principle (DIP), Inversion of Control (IoC), Dependency Injection (DI) and IoC Container

A curry of Dependency Inversion Principle (DIP), Inversion of Control (IoC), Dependency Injection (DI) and IoC Container using C#. Dependency injection using C#. Inversion of control using C#. IoC using C#. Download sample – 77 KB Introduction Background Dependency Inversion Principle (DIP) Let’s try to understand DIP with some example Problems we will face if

Read More

Delegate in C#

Delegate in C# I am not going to write formal definition here because you will find lots of definition of delegate by googling. Most of the time, new developer faces problem with delegate. They think actually what it is and why they use it instead of method. In simple word: What is Delegate? Delegate is

Read More

Creating generic method or extension for searching through all the columns in DataTable in C#

Few days ago I worked on a project where database table has more than 80 columns. My client asked to create a search so that it can search through all the columns. So I have decided to create an extension method which will search through all the columns in DataTable. Creating generic method or extension

Read More

Using Crystal Report in ASP.net MVC and creating generic report viewer

Download Project This article describes how to show crystal report in ASP.net MVC. Here I will describe two different ways for showing crystal report in MVC. 1. Showing crystal report using ASP.net web forms in MVC.     A. In same window     B. In different window 2. Showing crystal report from Controller/action (by

Read More

How to solve ” Could not load file or assembly ‘…’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057″ Error

Last day I have faced an error when I am compiling my ASP.net MVC application and this is for illegal shutdown of my computer. Here is my Error: ” Could not load file or assembly ‘EntityFramework’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 “ Similar types of Error: “Could

Read More

Master Detail CRUD Operations using ASP.net MVC 3 and EF

Master Detail CRUD Operations using ASP.net MVC 3 and EF. Master detail in asp.net mvc Introduction In this post I will discuss about how we can perform Master Detail CRUD Operations using ASP.net MVC 3 and Entity Framework (Code First).  Here I have used JSON (json2.js)  for data passing, Ajax for posting and DataTables (datatables.js) for

Read More

Executing *.sql file form C#

Sometimes we need to run *.sql script from our application for installing data base. SqlCommand is not right for running installation script because installation script consists of DDL and GO command. Here we use smo library for executing *.sql script. For doing above operation we need to add following references Microsoft.SqlServer.ConnectionInfo Microsoft.SqlServer.Smo Took me a

Read More