protected void ButtonQuery_Click(object sender, EventArgs e) { LabelAllMsg.Text = ""; dtJifei = MsgBLL.GetMsgSendJifen(TextSatrtDate.Value, TextEndDate.Value); GridViewJifei.DataSource = dtJifei; GridViewJifei.DataBind(); DataTable dtSum = MsgBLL.GetMsgRecordsSum(); string msg_count = dtSum.Rows[0]["msg_count"].ToString(); string msg_Price = dtSum.Rows[0]["msg_Price"].ToString(); LabelAllMsg.Text = "所有卖家短信使用费用情况:在搜索时间范围内共发送" + msg_count + "条短信,短信费用为" + msg_Price + "元"; }