string dobStr = ddlMonth.SelectedValue + "/" + txtDay.Text + "/" + txtYear.Text;SqlParameter dob = new SqlParameter("DOB", Convert.ToDateTime(dobStr));dob.SqlDbType = SqlDbType.Date;cmd.Parameters.Add(dob);
No comments:
Post a Comment