string entity; entity = DropDownList1.SelectedItem.Text; Label10.Text = entity; switch (entity) { case 'inkjet': int p = int.Parse( TextBox4.Text); int g = p * 45; Label12.Text = g.ToString(); break; case "lazerprinter": int f = int.Parse(TextBox4.Text); int y = f * 66; Label12.Text = y.ToString(); break; default : Label12.Text = "kindly select a printer type"; break; }
entity = DropDownList1.SelectedItem.Text.trim();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)