Saturday, February 28, 2009

Convert Generic List In To DataTable

I saw the Converting the List to Data Table articles..that are really nice things

Both are Good Stuffs

public static DataTable convert2Table(List list)


DataTable table = new DataTable();

if (list.Count > 0)


PropertyInfo[] properties = list[0].GetType().GetProperties();

List<string> columns = new List<string>();

foreach (PropertyInfo pi in properties)





foreach (T item in list)


object[] cells = getValues(columns, item);




return table;


private static object[] getValues(List<string> columns, object instance)


object[] ret = new object[columns.Count];

for (int n = 0; n <>


PropertyInfo pi = instance.GetType().GetProperty(columns[n]);

object value = pi.GetValue(instance, null);

ret[n] = value;


return ret;


mchek great technology for AIRTEL mobile users

You can pay your mobile bills, insurance premiums; buy air tickets and movie tickets from the convenience of your phone.

• Pay your Airtel Postpaid Bills or Top-up your Airtel Pre-paid
Just SMS “PAY AIRTEL ” to 543219

• Pay your insurance premium on your mobile


• mCommerce Services

Book your movie tickets SMS “MOVIE
” to 543219 (only on Airtel)

Book your Bus tickets on RedBus SMS “REDBUS ” to 543219 (only on Airtel)

• You can also pay using mChek on

Why mChek?
mChek is an easy, secure, mobile payment technology that has won the most stringent industry certifications like PCI DSS 1.2 and ISO 27001.
The mChek product was voted the “Most Innovative Mobile Customer Care Solution” by the GSMA (The Global Mobile(GSM) Phone Association)

Thursday, January 29, 2009

Repository Factory VS 2008

I tried to integrate the repository factory in VS 2008...But it takes 3 days...Finally i got the Guidance Package manager Toolkit and then opened the Repository Source in VS 2008 and modified the repoistory XML in the source to 9.0 and then i build and registered the component it comes in the menu and solution the ideas from msdn ...

PdfSharp ASP.NET

PdfSharp tool is great to generate the PDF document from ASP.NET...I did some samples..this makes some tough job easier...Really great opensource to use,...

Paypal Pay Flow Recurring ASP.NET

I have done the paypal pay flow recurring service using the Payflow-dotnet dll..It is easy to create the payment...There is no need to navigate to the purchases are made in our site..

Wednesday, January 21, 2009

Data Matrix 2D Bar Code C# ASP.NET Sample

I have created the Data matrix ASCII.Like below

This is sample and compared to the Standard this is same as in other site too.We can implement the Data Matrix in ASP.NET and Windows application.i have used the open source C# library from sourceforge ...but it supports rectangle and square automatically..I modified the source to generate the rectangle matrix

Tuesday, December 23, 2008

ASP.NET Design Patterns

Creational Patterns

Abstract Factory Creates an instance of several families of classes
Builder Separates object construction from its representation
Factory Method Creates an instance of several derived classes
Prototype A fully initialized instance to be copied or cloned
Singleton A class of which only a single instance can exist

Structural Patterns

Adapter Match interfaces of different classes
Bridge Separates an object’s interface from its implementation
Composite A tree structure of simple and composite objects
Decorator Add responsibilities to objects dynamically
Facade A single class that represents an entire subsystem
Flyweight A fine-grained instance used for efficient sharing
Proxy An object representing another object

Behavioral Patterns

Chain of Resp A way of passing a request between a chain of objects
Command Encapsulate a command request as an object
Interpreter A way to include language elements in a program
Iterator Sequentially access the elements of a collection
Mediator Defines simplified communication between classes
Memento Capture and restore an object's internal state
Observer A way of notifying change to a number of classes
State Alter an object's behavior when its state changes
Strategy Encapsulates an algorithm inside a class
Template Method Defer the exact steps of an algorithm to a subclass
Visitor Defines a new operation to a class without change


Create Dynamic ASP.NET Website in 30 minutes

ASP.NET Patterns & Practices

Create Data Access Layer Using Data Access Guidance Package

Data Access Guidance Package in the Web Service Software Factory to generate a data access layer for a Web Client Software Factory application

The factory pattern is easy to implement,it has the code generation capabilities........

Download and install