There are validators in place to check if the date entered is MM/dd/yyyy format and the user has to type it in. Even if I enter today's date, it does not return any error but saves the date as 1/1/0001 in the database. If I leave it blank, which is an OK condition as that field is not required, then I get this exception.
So for the HireDate textbox if I enter : 11/18/2011, then the database saves it as 1/1/0001 and if I keep it blank, then it returns this error.
I actually deleted the LinqDatasource and the FormView, closed the project and reopened it and crezted everything anew just like before and it now works fine *fingers crossed* and hopefully won't start giving any more troubles. But I would like to know what's with the SQL Server datatypes...
There are validators in place to check if the date entered is MM/dd/yyyy format and the user has to type it in. Even if I enter today's date, it does not return any error but saves the date as 1/1/0001 in the database. If I leave it blank, which is an OK condition as that field is not required, then I get this exception.So for the HireDate textbox if I enter : 11/18/2011, then the database saves it as 1/1/0001 and if I keep it blank, then it returns this error.I actually deleted the LinqDatasource and the FormView, closed the project and reopened it and crezted everything anew just like before and it now works fine *fingers crossed* and hopefully won't start giving any more troubles. But I would like to know what's with the SQL Server datatypes...
การแปล กรุณารอสักครู่..
