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 SinghRank #66 · 26.2K reputationPosted Oct 13, 2020, 10:59 PM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Oct 13, 2020, 10:22 PM EDT
suhel jamadar151 reputationPosted Oct 13, 2020, 10:54 PM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 13, 2020, 11:04 PM EDT
suhel jamadar151 reputationPosted Oct 14, 2020, 12:33 AM EDT
Kiran MohantyRank #821 · 2.8K reputationPosted Oct 14, 2020, 1:52 AM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 13, 2020, 10:43 PM EDT