Dear Sir/Madam,,
sql = "insert into msgdetails values(" & Val(TextBox1.Text) & ",'" & TextBox2.Text & "','" & TextBox6.Text & "','" & TextBox5.Text & "','" & TextBox3.Text & "','" & TextBox7.Text & "','" & Label11.Text & "'," & DateValue(Label3.Text) & ",'" & Label5.Text & "','" & DropDownList1.Text & "','" & TextBox4.Text & "')"
This my Code , I can't see any error in this , But wen i run the code it shows an Error "Conversion failed when converting date and/or time from character string." .
Please Help me out.
In Database , The type of field date1 as Date,, Here label3 shows the current date using the code : Label3.Text = System.DateTime.Now.ToShortDateString()
Wat will i Do?
Thanks in Advance...