TextBox txt = (TextBox)sender; GridViewRow gvr = (GridViewRow)txt.Parent.Parent; int i = gvr.RowIndex; txt = (TextBox)GridView1.Rows[i].FindControl("txtqty"); str7 = txt.Text; if (i <= 0) { lbltotcost.Text =(Convert.ToInt32(lblpurchasecost.Text) * Convert.ToInt32(str7)).ToString(); str3 = lbltotcost.Text; } else { lbltotcost.Text = (Convert.ToInt32(lblpurchasecost.Text) * Convert.ToInt32(str7)).ToString(); str4=lbltotcost.Text; } str5 = str3; str6 = str4;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)