double l = Convert.ToDouble(lbll.Content);
Input string was not in a correct format.
double value; if(!Double.TryParse(lbll.Content, out value)) { //not a double value } else { //you can use your double value here }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)