protected void lstLotBided_SelectedIndexChanged(object sender, EventArgs e) { txtsaleprice.Text = "People Records : " + lstLotBided.Items.Count.ToString(); if ((lstLotBided.Items.Count > 0 && lstLotBided.SelectedIndex >= 0)) { dt = objEmd.SelectSale_Price(lstLotBided.SelectedValue); double tempsaleprice = 0; for (int i = 0; i < lstLotBided.Items.Count; i++) { if (lstLotBided.Items[i].Selected) { tempsaleprice = tempsaleprice + Convert.ToDouble(lstLotBided.Items[i].Text); } } txtsaleprice.Text = tempsaleprice.ToString(); } else { txtsaleprice.Text = ""; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)