indradeo says:
SqlCommand cmd =
new
SqlCommand(
"INSERT INTO wlk_tlke (empid,asset_no,asset_nm,srl_num,dt,mk_mdl,po_nm) VALUES('"
+ Label22.Text +
"','"
+ TextBox1_Wlke_tlke +
"','"
+ TextBox2_Wlke_tlke.Text +
"','"
+ TextBox3_Wlke_tlke.Text +
"','"
+ TextBox4_Wlke_tlke.Text +
"','"
+ TextBox5_Wlke_tlke.Text +
"','"
+ TextBox6_Wlke_tlke.Text +
"')"
, con);
Replace above code with below. You need to specify the TextBox1_Wlke_tlke Text property.
SqlCommand cmd = new SqlCommand("INSERT INTO wlk_tlke (empid,asset_no,asset_nm,srl_num,dt,mk_mdl,po_nm) VALUES('" + Label22.Text + "','" + TextBox1_Wlke_tlke.Text + "','" + TextBox2_Wlke_tlke.Text + "','" + TextBox3_Wlke_tlke.Text + "','" + TextBox4_Wlke_tlke.Text + "','" + TextBox5_Wlke_tlke.Text + "','" + TextBox6_Wlke_tlke.Text + "')", con);