Silverlight Drag and Drop TreeView
Wednesday, July 7, 2010
Posted by Usama Wahab Khan at 12:02 AM 0 comments
Labels: Silverlight
Update From Dataset ADO.Net
Sunday, July 4, 2010
//Initialize Connection from database
SqlConnection cn = new SqlConnection("connectionString");
//add this Query command with connectionstring parameters to data adopter to get schema form database
SqlDataAdapter da = new SqlDataAdapter("Select * from tablename",cn);
// Dataset Object
DataSet ds = new DataSet();
//fill database schema to dataset
da.FillSchema(ds, SchemaType.Mapped);
DataRow dRow1 = ds.Tables["workers"].NewRow();
dRow1[1] = "Value1"; //textBox1.Text;
dRow1[2] ="Value2"; //textBox2.Text;
dRow1[3] ="Value3";///textBox3.Text;
dRow1[4] = "Value4";///textBox4.Text;
dRow1[5] = "Value5";//textBox5.Text;
ds.Tables["workers"].Rows.Add(dRow1);
SqlCommandBuilder builder = new SqlCommandBuilder(da);
da.Update(ds);
ds.AcceptChanges();
Posted by Usama Wahab Khan at 11:59 PM 0 comments
Thank Microsoft for Send me Lovely Gifts Thank
Thursday, July 1, 2010
Few Days ago Microsoft Pakistan send a gift hamper with lots writing pad and in the morning i get big gift pack for Microsoft USA THANK FOR GIFTS I LOVE THE I LOVE THE SHIRTS THANK YOU
Posted by Usama Wahab Khan at 12:44 AM 1 comments
Labels: Usama wahab khana