QUOTE:同意一楼,在数据库查时查出。
--------------------------------
要说"同意竹子"*_*
--------------------------------
要说"同意竹子"*_*
解决方案 »
- 请问新闻生成静态页面,浏览次数怎么处理?
- 服务器端如何调用客户端Gridview内部控件所绑定的数据库中德值
- ASP.NET页面传值字符串中含有加号如何处理?
- iframe 宽度 设置 问题
- 请问 某一 字段 (分类属性) 有20种取值可能()代表20种分类 ,需要建立索引吗?
- vs.net 2003有没有清理垃圾文件的功能啊?
- 有关于CustomValidator的问题
- 安装了IEWebControls组件,为什么TreeView在VS.net工具箱中还是看不到,郁闷!!1
- 找出日期相差十天的数据的SQL语句
- 框架刷新问题: 一个框架中的WEB controlbutton 中的代码中怎么刷新另一个frame
- Server Error in '/' Application的问题
- 经常有人要从URL注入攻击数据库
private double sum = 0; protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowIndex >= 0)
{
sum += Convert.ToDouble(e.Row.Cells[6].Text.Replace("¥", "")); }
else if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[0].Text = "合计:";
e.Row.Cells[0].HorizontalAlign = HorizontalAlign.Right;
e.Row.Cells[1].Text = sum.ToString("C");
e.Row.Cells[1].HorizontalAlign = HorizontalAlign.Right;
e.Row.Cells[0].ColumnSpan = 5;
e.Row.Cells[1].Text = sum.ToString("C")+"(元)";
} }
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[0].Text = "合计:";
e.Row.Cells[0].HorizontalAlign = HorizontalAlign.Right;
e.Row.Cells[1].Text = sum.ToString("C");
e.Row.Cells[1].HorizontalAlign = HorizontalAlign.Right;
e.Row.Cells[0].ColumnSpan = 5;
e.Row.Cells[1].Text = sum.ToString("C")+"(元)";
} }