Click here to Skip to main content
15,878,543 members

Comments by hemantwithu (Top 72 by date)

hemantwithu 10-Mar-14 8:18am View    
I have solved it. Please check the below answer. :)
hemantwithu 6-Mar-14 4:11am View    
Thanks you.I have one more question like Is service or WebAPI or REST are used to get the data from DB? So no event wire-up to the controls.
hemantwithu 1-Apr-13 1:42am View    
If we have a folder in the network shared path so How can we transfer the file with login credentials ?
hemantwithu 23-Jan-13 0:12am View    
But Here I am not inserting the record with direct insert query as "insert into table values(@c1,@c2)".I am inserting record using DataSet as like this
SqlConnection con = new SqlConnection(connStr);
DataSet ds = new DataSet();
DataRow dr;
SqlCommand cmd = new SqlCommand("select * from address",con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
SqlCommandBuilder cmdBuilder;
da.FillSchema (ds,SchemaType.Source );
da.Fill(ds, "address");

dr = ds.Tables["address"].NewRow();
dr["sname"] = "tomy";
dr["fname"] = "peter";

ds.Tables["address"].Rows.Add(dr);

cmdBuilder = new SqlCommandBuilder(da);
da.Update(ds, "address");
hemantwithu 17-Jan-13 9:18am View    
Can any one explain why this is happening ?