摘要:
发布到服务器(windows server2003,asp.net 2.0)后总是报stringtonumber的错误,说是字符串不对,追根溯源找到这个地方if(voteCount.Length<=0||voteTotal.Length<=0||voteTotal.Trim()=="0"){return(0);}doublenVoteTotal=double.Parse(voteTotal);if(nVoteTotal>0){return(Math.Round((double.Parse(voteCount)*100/nVoteTotal),2));}re 阅读全文