Sri Lanka .NET 
       Forum Member

Thursday, May 24, 2007

Adding Images to my blog.

I was trying to add images to my blog using "Windows Live Writer (Beta)" for some reason it didn't allow me to upload images, here is the error that i'm getting.




may be FTP has been bloked by our adminstrators.
how ever i'm testing uploading images thought blogger.com interface.

Labels:

Monday, May 21, 2007

Market Share for Top Servers Across All Domains.

Apache web servers becomming the TOP runners in web server arena.
Not just only hosting, Apache has overtaken Microsoft as the leading developer of secure web servers. Apache now runs on 44.0% of secure web sites, compared to 43.8% for Microsoft.

Market Share for Top Servers Accross All Domains August 1995 -May 2007

[www.netcraft.com]

Apache Now the Leader in SSL Servers

[www.netcraft.com]

Labels:

Friday, May 11, 2007

How to add columns and rows into a DataTable and then add this table into a DataSet.

This is qucik respond to one of my friends quiz, taht is how to add records to a table and then add this table into a dataset in Runtime.

Here is the C# code.

//Declaring Dataset and DataTable
DataSet ds = new DataSet("myDataset");
DataTable dt = new DataTable("myDataTable");


//Creating Datatable columns
dt.Columns.Add("ID", Type.GetType("System.Int32"));
dt.Columns.Add("Name", Type.GetType("System.String"));

//Datarow variable to use in adding rows
DataRow dr;


//Adding Rows
for(int i=0; i<10; i++)
{
dr = dt.NewRow();
dr["ID"] = i;
dr["Name"]=i.ToString();
dt.Rows.Add(dr);
}


//If you need to add the table in Dataset you can do like this
ds.Tables.Add(dt);

//Query the dataset.datatable to see the added values

foreach(DataRow r in ds.Tables[0].Rows)
{

//r[0] is the first columns. inseted r[0] you can use r["ID"]
Response.Write( r[0].ToString() + "-----" + r[1].ToString() + "<br>");
}

Labels:

Monday, May 07, 2007

Pictures of my new House.

Front Elevation
@ the stage of construction.@ the stage of plastering.@ the stage of completed.
Sitting Room
@ the stage of construction.@ the stage of plastering.@ the stage of completed.

Labels: