Debugging my first web application using a DateTimePicker Rad control and I continue to get "Failed to convert parameter value from a DatePickingInput to a DateTime" errors. Any ideas on how to proceed?
Here's the code snippet:
Here's the code snippet:
cmd =
new SqlCommand("INSERT INTO Act (Title, StartDate, EndDate VALUES (@Title, @StartDate, @EndDate", conn);
cmd.Parameters.Add(
"Title", SqlDbType.Char, 50).Value = ActTitle.Text;
cmd.Parameters.Add(
"StartDate", SqlDbType.DateTime).Value = ActStart.DateInput;
cmd.Parameters.Add(
"EndDate", SqlDbType.DateTime).Value = ActEnd.DateInput;
conn.Open();
cmd.ExecuteNonQuery();