Hi ,
i have a situation like i want to insert default value specified in database when textbox value is null otherwise insert value that textbox contains .How to do this thing when i am using parameterised query in vb.net.
The column can take integer value.I tried to solve the problem in this way but it is showing error cannnot insert string value for integer.
cmd.Parameters.AddWithValue("@column", IIf(txtsnaptimeupt.Text = "", "default", txtcount.Text))
How to solve this issue?
Thanks in advance
Rajeev Punhani