Yea, I did that, however:
newAnswer.Ques1 = Convert.ToInt16(txtQues1.Text);
throws an exception if nothing is entered.
I assume the answer is to pass everything through a validation method and
set a default there. I was hoping there was a way to set that property
without doing that.
_h
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ur**************@TK2MSFTNGP03.phx.gbl...
Set a default in the database.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Hard work is a medication for which
there is no placebo.
"harry" <ma****@musc.edu> wrote in message
news:u6**************@TK2MSFTNGP03.phx.gbl... Using aspnet20 csharp, I have a simple data entry screen that inserts
submitted values to a database. I want a default value to be submitted if
no value is entered in a textbox.
Thanks
_harry