User-909867351 posted
Hi
I'm working with Mysql database and I need to update one field. Here is my code
SqlDataSource1.UpdateParameters.Clear();
SqlDataSource1.UpdateCommand = "update contas set valor=valor+? where conta='1.1' and codigo=?";
SqlDataSource1.UpdateParameters.Add("@a", txtValor.Text);
SqlDataSource1.UpdateParameters.Add("@b", Session["edificio"].ToString());
SqlDataSource1.Update();
The problem is that I can only pass string as parameter and
not decimal values therefore my field is never updated. How can I work with decimal parameters?
Thank you