hai,
am using asp:content pages binded dropdown list selected item unable to insert in DB
but when am using under Default.aspx with HTML code under it is working properly
can i get any help regarding this.
con.Open();
qry = "insert into dtdc_ititemmaster (Machine_Sr_no,Model,Type,Make,AMC_Date,Warranty_Date,Dept,User_Name,Identification,IP,Configuration,AMC_Vendor,PO_NO,PO_Date,Remarks) values('" +txtmachineno.Text+ "','" + txtmodel.Text + "','" + droptype.SelectedItem + "','" + txtmake.Text + "','" + txtamc.Text+ "','" + txtwrrwnty.Text + "','" +dropdept.SelectedItem + "','"+txtuname.Text+"','"+txtidenty.Text+"','"+txtipadd.Text+"','"+txtconfg.Text+"','"+txtamcvndr.Text+"','"+txtpono.Text+"','"+txtpodate.Text+"','"+txtremark.Text+"')";
SqlCommand cmd = new SqlCommand(qry, con);
cmd.ExecuteNonQuery();