Jun 26, 2008

Creating a DataTable | DataTable in C#

Creating a DataTable | DataTable in C#

DataTable aTable = new DataTable();
aTable.Columns.Add("ProductID", typeof(int));
aTable.Columns.Add("ProductName", typeof(string));
DataRow dr;
dr = aTable.NewRow();
dr[0] = 12;
dr[1] = "Lap Top";
aTable.Rows.Add(dr);
dr = aTable.NewRow();
dr[0] = 13;
dr[1] = "DeskTop";
aTable.Rows.Add(dr);
dr = aTable.NewRow();
dr[0] = 14;
dr[1] = "Server";
aTable.Rows.Add(dr);
dr = aTable.NewRow();
dr[0] = 15;
dr[1] = "Mac PC";
aTable.Rows.Add(dr);

You can create these rows by getting data from database also

command=new SqlCommand("select * from Product",connection);
connection.Open();
SqlDataReader reader = command.ExecuteReader();
while(reader.Read())
{
Dr=aTable.NewRow();
Dr[0] = reader.GetValue(1);
Dr[1] = reader.GetValue(2);
aTable.Rows.Add(Dr);
}

Jun 22, 2008

Haj committee India | Haj 2008 Lucknow

All about Haj, please visit http://www.hajcommittee.com

This year UP haj pilgrims will be decided on lottery draw due to more responces of limited quota assigned to UP. The lucky draw was decided to held on 21st June 08, and the final list of pilgrims will be posted on haj committee site.

Lets wait and see Whom Allah give a chance to perform Haj this year.
Finally wait is over you can get the results here

Jun 10, 2008

AMU 2008 Test courses results

AMU 2008 Test Results

B. Arch.
B.A.L.L.B.
B.C.A./B.I.T./B.C.M.
B.Ed.
B.E. Evening
B.Lib.
B. Sc. (Hons.) Indus. Chemistry
B.Tech.
C.E.T.
D.C.P.
Dip. in Gen. Nursing
L.L.M .
M.B.A./M.B.A.(IB)
M.B.B.S. / B.D.S.
M.C.A.
MD/MS/PG Dip.
M.Ed.
M.Lib.
M.A Mass Comm.
M.S.W. (Final)
XI/Dip. Engg.

All the above courses results can be found at this link.

May 31, 2008

Learn ASP.NET

Here are the links which helps you to get started learning ASP.NET

1. Learn ASP.NET
2. Free videos to understand you better Free ASP.NET Videos
3. ASP.NET FAQs Get It
4. ASP.NET
5. For any technical queries join to this forum

Note: If you know some more resources for learning ASP.NET please add a comment.

May 29, 2008

SQL - Difference between CAST,CONVERT and PARSE

TODO---