异常详细信息: System.FormatException: 输入字符串的格式不正确。源错误: 行 55: e.Row.Attributes.Add("onmouseover", "c=this.style.backgroundColor;this.style.backgroundColor='#C0C0FF'");
行 56: e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
行 57: e.Row.Cells[8].Text = Convert.ToString(Convert.ToDouble(e.Row.Cells[6].Text.ToString().Trim()) * Convert.ToDouble(e.Row.Cells[7].Text.ToString().Trim()));
行 58: a += Convert.ToDouble(e.Row.Cells[8].Text.ToString().TrimStart("".ToCharArray()).Trim());
行 59: }
红色的代码部分在本机上测试正确,到了服务器上就显示不正确了,不知道是不是代码有问题还是其它的什么原因?请高手解答?
行 56: e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=c");
行 57: e.Row.Cells[8].Text = Convert.ToString(Convert.ToDouble(e.Row.Cells[6].Text.ToString().Trim()) * Convert.ToDouble(e.Row.Cells[7].Text.ToString().Trim()));
行 58: a += Convert.ToDouble(e.Row.Cells[8].Text.ToString().TrimStart("".ToCharArray()).Trim());
行 59: }
红色的代码部分在本机上测试正确,到了服务器上就显示不正确了,不知道是不是代码有问题还是其它的什么原因?请高手解答?
double.TryParse(e.Row.Cells[6].Text.ToString().Trim(),out d6);
double d7=0;
double.TryParse(e.Row.Cells[7].Text.ToString().Trim(),out d7);
double d=d6*d7;
e.Row.Cells[8].Text=d.ToString();