How to insert txtsalary=""; value into decimal in database?
i am using
objBAL.salary = txtSalary.Text == "" ? 0 : Convert.ToDecimal(txtSalary.Text);
but insert into databae
0.00
we want
null
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sai Kumar KoonaPosted Sep 18, 2018, 10:10 AM