Tuesday, 9 December 2014

3 Layered ASP.NET Application Example - Part 3

In this post, we will create BLL for PersonalTaskTracker application.

  • Right click the Solution and add a new project which is Console Application named BLL.
  • Right click the BLL project and add the reference to DAL
Add the following two classes to the BLL project.

3 Layered ASP.NET Application Example - Part 2


  • Open Microsoft Visual Studio.
  • Create a new ASP.NET Empty Web Application.
  • Name the project PersonalTaskTracker
  • Right click the Solution and add a new project which is Console Application named DAL.
  • Right click the DAL project and add the reference to System.Configuration

3 Layered ASP.NET Application Example - Part 1


We are going to  implement a Personal Task Tracker, a 3-layered ASP.NET application. This application supports the functions to add, edit, delete and view tasks. Each task has properties: description, summary,  date of creation and status (denotes whether the task is closed or open). The user interface will look something like:



Sunday, 7 December 2014

Generic Priority Queue Using Sorted Dictionary in C#

A priority queue is a queue in which items are sorted according to priority. An item with highest priority will come out of it first.

Here, we will see a generic priority queue implemented using Sorted Dictionary. By generic, it means we can make a priority queue of any type of objects, but the object should contain some priority property. In short, the generic object should be a derived class of the PriorityNode.

Monday, 1 December 2014

Searching a keyword in JSON Result-set

Note: the below code return all the objects that has at least one key with its value matching the keyword. The partial-searching is done here.