摘要: 调试程序的时候出现了如下的错误:The Server tag is not well formed.网上找了一下,发现有这么两种情况会出现这样的错误提示:---------------------1.使用了重复的双引号(double quotes),比如:<asp:Button id=but Text="Button" runat="server" CommandArgument="<%# DataBinder.eval_r(Container.DataItem, ("ColIndex")) %>" 阅读全文
posted @ 2011-10-28 16:53 Randolph Liu 阅读(1191) 评论(0) 推荐(0)
摘要: 不能直接调用Math.Round方法的,这可和Java的不一样哦Math.Round这个函数的解释是将值按指定的小数位数舍入,并不就是四舍五入。这种舍入有时称为就近舍入或四舍六入五成双C# codeMath.Round(0.4) //result:0Math.Round(0.6) //result:1Math.Round(0.5) //result:0 Math.Round(1.5) //result:2 Math.Round(2.5) //result:2 Math.Round(3.5) //result:4 Math.Round(5.5) //result:6 Math.Round(6.5 阅读全文
posted @ 2011-10-28 09:24 Randolph Liu 阅读(5570) 评论(1) 推荐(0)