protected void btnSubmit_Click(object sender, EventArgs e)
{
foreach (GridViewRow g1 in GridView1.Rows)
{
SqlConnection con = new SqlConnection(ConStr);
SqlCommand com = new SqlCommand("insert into tblTotal(Product_Name,MRP,Salon_Cost,Qty,Total_Cost) values ('" + g1.Cells[0].Text + "','" + g1.Cells[1].Text + "','" + g1.Cells[2].Text + "','" + g1.Cells[3].Text+ "','" + g1.Cells[4].Text + "')", con);
con.Open();
com.ExecuteNonQuery();
con.Close();
}
}
this my code. the quantity and total cost enter the run time using jquery but the two column values not insert the database

Vincent Maverick DuranoPosted Apr 28, 2016, 9:08 AM
Vincent Maverick DuranoPosted Apr 29, 2016, 8:10 AM
Rubiya RajamanickamPosted Apr 29, 2016, 7:57 AM
Vincent Maverick DuranoPosted Apr 29, 2016, 7:51 AM
Rubiya RajamanickamPosted Apr 29, 2016, 7:49 AM
Vincent Maverick DuranoPosted Apr 29, 2016, 7:42 AM
Rubiya RajamanickamPosted Apr 29, 2016, 2:38 AM
Rubiya RajamanickamPosted Apr 28, 2016, 7:39 AM
Vincent Maverick DuranoPosted Apr 28, 2016, 7:36 AM
Rubiya RajamanickamPosted Apr 28, 2016, 7:24 AM
Vincent Maverick DuranoPosted Apr 28, 2016, 7:22 AM
Rubiya RajamanickamPosted Apr 28, 2016, 7:15 AM
Vincent Maverick DuranoPosted Apr 28, 2016, 7:03 AM
Rubiya RajamanickamPosted Apr 28, 2016, 6:46 AM
Vincent Maverick DuranoPosted Apr 28, 2016, 6:37 AM
Rubiya RajamanickamPosted Apr 28, 2016, 6:27 AM
Vincent Maverick DuranoPosted Apr 26, 2016, 7:41 AM
Rubiya RajamanickamPosted Apr 26, 2016, 3:50 AM
Vincent Maverick DuranoPosted Apr 25, 2016, 8:03 AM
Vincent Maverick DuranoPosted Apr 25, 2016, 8:03 AM
Rubiya RajamanickamPosted Apr 23, 2016, 2:55 AM
Vincent Maverick DuranoPosted Apr 22, 2016, 9:45 AM
Rubiya RajamanickamPosted Apr 22, 2016, 9:03 AM
Vincent Maverick DuranoPosted Apr 22, 2016, 8:53 AM
Rubiya RajamanickamPosted Apr 22, 2016, 4:49 AM
Rubiya RajamanickamPosted Apr 21, 2016, 4:17 AM
Vincent Maverick DuranoPosted Apr 20, 2016, 8:44 AM
Rubiya RajamanickamPosted Apr 20, 2016, 8:25 AM
Manas MohapatraPosted Apr 20, 2016, 8:17 AM