I am inserting an int value using numericupdownvalue from a form to database, using the following code
SqlCommand cmd = new SqlCommand("insert into student where student_no='"+numericupdown1.value+"'",con)
Now I have another form that is when loaded, will read the inserted value made by the numericupdown.value, using the following code
numericUpDown1.Value = dt.Rows[0]["Bookshelf"].ToString();
but it generates an error cannot implicitly convert type 'string' to decimal.
how to fix this?