protected void datalist_p(object source, DataListCommandEventArgs e) { Label link1 = (Label)e.Item.FindControl("lbl_adult"); double a = Convert.ToDouble( link1.Text); calculation(a); Label link2 = (Label)e.Item.FindControl("lbl_child"); double b = Convert.ToDouble(link2.Text); calculation2(b); } public double calculation(double link) { double link1 = link; return link1; } public double calculation2(double linka) { double link2 = linka; return link2; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)