-6
私は、動作するストアドプロシージャを使用するコードを作成しました。しかし、私はここでSystem.FormatException
を得る:DataReaderのString.FormatとDateTimeを使用したFormatException
while (rdr.Read())
{
PrichinatextBox.Text = (string)rdr["Prichina"];
dateEdit.Text = (string.Format("{yyyy-MM-dd}", rdr["data"])); //error format exception
}
connection.Close();
MessageBox.Show("Ваши данные добавлены");
それを実現するためのコードを書く。
ありがとう、それは働いた –