SqlCommand cmd = new SqlCommand("INSERT INTO Monitor VALUES(@LCDSrNo, @ProductName, @LCDProductNo, @Date)", con);
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddWithValue("@LCDSrNo", textBox2.Text);
cmd.Parameters.AddWithValue("@ProductName", textBox3.Text);
cmd.Parameters.AddWithValue("@LCDProductNo", textBox4.Text);
cmd.Parameters.AddWithValue("@Date", dateTimePicker1);
con.Open();
cmd.ExecuteNonQuery();
con.Close();

Sachin SinghPosted Oct 14, 2020, 2:59 AM
Kiran MohantyPosted Oct 14, 2020, 5:52 AM
Mageshwaran RPosted Oct 14, 2020, 4:56 AM
Sachin SinghPosted Oct 14, 2020, 4:48 AM
suhel jamadarPosted Oct 14, 2020, 4:33 AM
Sachin SinghPosted Oct 14, 2020, 4:13 AM
Mageshwaran RPosted Oct 14, 2020, 3:04 AM
Mageshwaran RPosted Oct 14, 2020, 3:00 AM
suhel jamadarPosted Oct 14, 2020, 2:54 AM
Mageshwaran RPosted Oct 14, 2020, 2:43 AM