Best solution to handle error from blank textbox bound to number f

Giganews Newsgroups
Subject: Best solution to handle error from blank textbox bound to number f
Posted by:  bmutch (bmut…@discussions.microsoft.com)
Date: Mon, 6 Oct 2008

In my VS 2008 vb.net project I have some textboxes bound to number fields in
the DB. when the user enters a number, then blanks out the number and moves
off the textbox and tries to save the record it fails because it trys to save
an empty string in the record.

Error msg is "input string was not in correct format"

How can I best handle this?

thanks,
bmutch

Replies