How to manage learning resources.

How to manage learning resources when you are beginner (For programmer/ software developer)

Introduction

Here I will try to describe how to manage learning resources so that user/ reader can get them when they are necessary. Here learning resource means any web link which contains necessary information, code snippet which needs to store or share, any sample app with source, any book references or any other resources.

Initially I will describe about problems related to managing learning resources and then I will try to give some solution so that we can recover those problems. Continue reading

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 to use pushed packages from Visual Studio.
Hope you will enjoy it…

Presentation Slides

Continue reading

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)
—- but it actually came from a search parameter table. It’s kind of a lookup table in a dropdown
Besides the dropdown there should be textbox where I can enter a value
Search by LastName (dropdown) <”hasibul”> in textbox

Continue reading

Kendo Grid in Action

Content

Cannot ALTER TABLE in MS SQL 2008/SQL2008 R2/SQL2012

Cannot ALTER TABLE in MS SQL

After installing ms sql 2008/2012 you may face new problem which may protect you to alter any table. Something like following
Alter Table Problem In MS SQL

There is a new option added in SQL Server 2008/2012 for modifying tables while using the Table Designed in Management Studio which will prevent saving any changes to a table that needs a drop/re-create of the table.
The error you see

Continue reading

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 Continue reading

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 a method reference in C# or Delegate is a function pointer in other language like C/C++.

Continue reading

Crystal report shows a blank page in ASP.net

Sometimes asp.net web page shows blank page although it is consist of Crystal report viewer.

Cause of Problem

  • Using client tools (debug window of your browser) or server tool (IIS log) you will find that some files (crv.js , style.css ) are not served;
  • these files are placed by CR installer in wwwroot\aspnet_client folder but they cannot be reached;
  • If you installed your application in a website different from Default WebSiteaspnet_clientfolder is not placed inside that website
Solution

Continue reading

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 for searching through all the columns in DataTable in C#.

It is difficult to write a SQL query (when table has many columns) which will search through all the columns.

Continue reading

How to Solve If Crystal Report 13 does not show Printing Dialog or Export report dialog.

Sometimes it shows that Crystal Report runs properly but its printing dialog, export report dialog doesn’t work properly and also going next page doesn’t work. Doesn’t work means if i press print button it doesn’t perform any action.

How to Solve If Crystal Report 13 does not show Printing Dialog or Export report dialog. Crystal report next page doesnt working.

Continue reading