Blog Posts - Reusable Code



Knockout Advanced Tree Library & Control

All code samples used on this post can be downloaded from hereThis post shows you how to fully implement a tree control using knockout. It was taken into consideration while writing the code to separate the business-related code from the core imple...
by Development Simply Put on Feb 7, 2015

Knockout Datagrid With Sorting, Paging And Searching

All code samples used on this post can be downloaded from here.If you are interested into having a quick recap on the paging concept you can check the post Paging Concept - The Main Equations To Make It Easy first.This post shows you how to fully imp...
by Development Simply Put on Feb 1, 2015

A Guide For Dealing With Hierarchical, Parent-Child And Tree Form Data Operations

Lately I have been working on more than one project dealing with hierarchical data structures. This encouraged me to try to sum up my experience on this type of structures and corresponding operations.From time to time I will revisit this post to upd...
by Development Simply Put on Jan 30, 2015

Splitting Daytime Into Chunks To Enhance SQL Bulk Time-based Operations Performance

The best way to understand what this post is about is to start with a real scenario.One of my colleagues was building a system which controls some motors using some readings coming from electronic sensors. The problem was that the frequency of the se...
by Development Simply Put on Jan 22, 2015

How To Develop/Adjust ASP.NET User Controls For Multiple Instances Support

When developing ASP.NET user controls you should keep in mind whether they need to support multiple instances feature or not. In other words, you should decide if more than one instance of your user control could be added on the same page. Why do you...
by Development Simply Put on Sep 17, 2014

How To Access ASP.NET Web.config AppSettings On Client-Side Javascript

You can download the code presented into this post from hereThere are many ways by which you can access your ASP.NET web application web.config application settings through your client-side javascript code. The common thing between all of these ways...
by Development Simply Put on Jun 21, 2014

Paging Concept - The Main Equations To Make It Easy

The paging concept is used in many fields that it is even used in our daily lives. When you have a set of items and you want to divide them equally between some sort of containers or groups, you are thinking of paging but may be you don't recognize i...
by Development Simply Put on Jun 16, 2014

Forcing ASP.NET Control To Go Through Its Full Life Cycle On Static Methods

A few days ago I needed to use a custom control which I made as a template to generate some HTML and return it as a response for an Ajax call, but, I faced a problem which is that my WebMethod is a static method which cannot access the control instan...
by Development Simply Put on Jan 22, 2014

For SQL Hierarchical Data, How To Show Only Tree Branches Including Certain Type Of Entities And Discard Others

If you have a tree of entities represented into a SQL database into parent-child relation as in the image above, you may need to be able to view only the tree branches which include a certain type of entitiesand discard the branches which don't inclu...
by Development Simply Put on Jan 12, 2014

ASP.NET Viewstate And Controlstate Performance Enhancements - Saving Viewstate And Controlstate On Server

Viewstate and Controlstate are used in ASP.NET pages to keep states of pages and all control on them between postbacks. ASP.NET framework saves these states in a container to be used throughout postbacks to maintain these states. That is why the text...
by Development Simply Put on Dec 26, 2013

How To Avoid Problems Caused By Clients' Browser Cached Resource Files (JS, CSS, ....) With Every New Build

Browsers like IE, Firefox, Chrome and others have their own way to decide if a file should be cached or not. If a file link (URL) is requested more than a certain number of times the browser decides to cache this file to avoid repeated requests and t...
by Development Simply Put on Dec 22, 2013

Application To Generate Combined Images Of All Image-Categories Possible Combinations

On my last project I was working on a tree control which represents system business objects into hierarchical form. Each object has a workflow to go through and for each step in this workflow the object state changes.So, one of the requirements was t...
by Development Simply Put on Dec 21, 2013

Forcing ASP.NET Control To Go Through Its Full Life Cycle On Static Method

A few days ago I needed to use a custom control which I made as a template to generate some HTML and return it as a response for an Ajax call, but, I faced a problem which is that my WebMethod is a static method which cannot access the control instan...
by Development Simply Put on Dec 20, 2013

Possibilities Cube Library - A Library Smart Enough To Calculate All Possibilities With Logical Conditions

Let's imagine that as a big advertisement campaign Vodafone, Samsung & Nokia co-arranged a lottery. The winner will get two mobile phones in addition to two SIM cards with special numbers.It is obvious that the SIM cards will be provided by Vodaf...
by Development Simply Put on Aug 7, 2013

How To Copy SQL Hierarchical Data At Run-time While Keeping Valid Internal References And Self Joins

Sometimes when you deal with hierarchical data structures you may need to perform internal copy operations. To imagine what I mean, you can keep up with the scenario illustrated below.You have a "Departments" table which include all departments in yo...
by Development Simply Put on Aug 2, 2013

How To Transform Unsorted Flat Hierarchical Data Structures Into Nested Parent-Child Or Tree Form Objects

Assume that you have hierarchical data structure presented into an SQL database table as in the image below.As you can see each employee in the "Employees" table above can have a Manager which is an employee himself. In this case when the employee "T...
by Development Simply Put on Jul 31, 2013

Why/How To Drop SQL Entities If They Exist?

Sometimes while writing SQL scripts purposed for fixing production issues you face some unexpected problems. These problems may be due to the existance of discrepancy between client's environments caused by missing some scripts and may be by other re...
by Development Simply Put on May 29, 2013

How To Apply Recursive SQL Selections On Hierarchical Data

Sometimes we work on systems where a hierarchical data structure exists on some entities like employees and their managers. Both employees and managers can be called employees but there is a self join relation between them as each employee must have...
by Development Simply Put on May 27, 2013

How To Reconstruct String Sections From Concatenated String Format

Sometimes you find yourself in a need to pass some values from one module to another beside being restricted to using a string format not a fully qualified object. This restriction may be due to performance purposes or some technical restrictions lik...
by Development Simply Put on May 24, 2013

How To Create SQL Custom User-Defined Aggregate Functions

Sometimes you need to perform some complex SQL queries depending on some aggregate operations or functions. In most cases, these complex operations could be achieved by series of queries with joins and groupings, but, sometimes it is almost impossibl...
by Development Simply Put on May 13, 2013


Trending Topics

Close