Many applications provides the registration option to the users.While providing details as a part of the registration process apart from the username and password,user is also required to provide the email address.Asking the user for the email address as a part of the registration process is good option since it can be used in the […]
WebSockets in HTML5
In a typical web application communication between the browser and the web server follows the request and reply pattern.Browser makes the request to the web server which sends the response in return.So the communication needs to be initiated by the web browser.This works well for most of the web applications. Sometimes we need to implement […]
DML Triggers in SQL Server
A Trigger in SQL Server is a database object.SQL Server contains many different objects which either store data or provide access to the data.Other common database objects are: Table View Stored Procedures Function Index Constraint Trigger has a similarity with a stored procedure.Both Stored Procedure and Trigger contains T-SQL statements which are executed as a […]
Sorting List of Custom type in C#
Sorting items in a collection is a common requirement specially when the collection contains lots of items.If our collection contains primitive type only then we can easily sort the items in the collection by just calling the sort method. So if declare a collection of integers as List<int> lst = new List<int>{34,3,544,5,743,14,5425}; Then we just […]
Use and example of Proxy Design Pattern
Name Proxy Type Structural Design Pattern Description An object acts as a placeholder for another object.Client interacts with Proxy(placeholder) rather then actual object. In the Proxy Design pattern an object called the Proxy is used as a placeholder for another object.The main object provides the actual functionality whereas the proxy object is […]