Information générale
Catégorie:
The Mere Mortals .NET Framework
Kevin,
I re-read the developers guide on biz rules and now have a better understanding of the warning vs broken rule notification.
However, is there a way to disable showing the warning for date fields? I added 0 as default value for numerics but don't know how to work around the date type.
As always, thanks for your help.
Terry Carroll
>Terry,
>
>>In a web form, why do I get the warning icon with the following tooltip messages when I Save a row? The fields are not required and nulls are allowed in the table but when no data is entered I get these messages.
>
>>“Input string not in correct format”
>>“String was not recognized as a valid date”
>
>This error occurs when binding the value back from the textbox. The routine that converts the textbox value to DateTime is choking on the empty string. We've fixed this in the upcoming version of MM .NET, so it will automatically handle the empty string value for you.
>
>>Also why is the data saved if there are error or warning messages?
>
>It's saved because there are no broken rules. The error occurred when unbinding the textbox rather than saving data.
>
>Regards,
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement