日期:2014-05-17 浏览次数:20460 次
if (_myDs.Tables[_orderItemsName].Rows.Count == 1)
{
gvItems.FooterRow.Cells[2].Text = _myDs.Tables[_orderItemsName].Rows[0]["Price"].ToString();
Response.Write(gvItems.FooterRow.Cells[2].Text.ToString());
int temp = Convert.ToInt32(gvItems.FooterRow.Cells[2].Text.ToString());
Response.Write(temp);
}
else
{
int temp = Convert.ToInt32(gvItems.FooterRow.Cells[2].Text.ToString());
gvItems.FooterRow.Cells[2].Text = (temp + Convert.ToInt32((lblClothPrice.Text).ToString())).ToString();
//gvItems.FooterRow.Cells[2].Text = Convert.ToInt32(gvItems.FooterRow.Cells[2].Text.ToString()) + Convert.ToInt32(lblClothPrice.Text.ToString());
}
int temp=0
if (!string.IsNullOrWhiteSpace(gvItems.FooterRow.Cells[2].Text.ToString()))
{
temp = Convert.ToInt32(gvItems.FooterRow.Cells[2].Text.ToString());
}