public void total() { float price1,totalprice; int quantity1; foreach (GridViewRow row in GridView1.Rows) { int pro_id = Convert.ToInt32(GridView1.DataKeys[row.RowIndex][0]); price1 = dal.getprice(pro_id); quantity1 = dal.getquantity(pro_id); totalprice = quantity1*price1; lbltprice.Text = totalprice.ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)