Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Warning Icons and Message?
Message
 
À
15/06/2004 18:53:37
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00914085
Message ID:
00914615
Vues:
8
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,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform