F
Fraggle
I have an asp.net page, I have a text box where people can enter an
integer (age). I wish to store this in a SQLServer Database. If the
person enters no age then I would store a NULL.
However if the textbox is left blank, I get an error
"[InvalidCastException: Cast from string "" to type 'Integer' is not
valid.]"
How can I work around this, and get the null into the db?
Cheers
Fragg
integer (age). I wish to store this in a SQLServer Database. If the
person enters no age then I would store a NULL.
However if the textbox is left blank, I get an error
"[InvalidCastException: Cast from string "" to type 'Integer' is not
valid.]"
How can I work around this, and get the null into the db?
Cheers
Fragg