I have a strongly typed dataset which I assign its value to my variables. There are fields in the data which I allow null (leave blank). I keep getting a StrongTypingException because of DBNULL value. Is there away for me to code it so that to say "yes it is ok to have some value to be null?"
I have a lot of variables which I need to set value to from the dataset so to write try and catch for each of my variables could be very messy but if there is no other way then that is what I have to do. Thank you for anyone help.