I have a datatype float in sql server for the field Hours which i need to get from the client side. I get the value in the textbox like this
double Hours = Convert.ToDouble(txtHours.Text);
but i am getting an error ' string in not correct format. I need to get this value in double and then store it in sql server table. My Question is how can we convert this input into double type and then convert this double value back to float in the database.
I am using vs 2005 and sql server 2005