string IsChauffeurUsed = "Yes";
totalValue += IsChauffeurUsed.Equals("Yes", StringComparison.CurrentCultureIgnoreCase) ? 80 : 0;
Label8.Text = totalValue.ToString();
The above line of code make the system add 80 add after calculate
int totalValue = 0;
totalValue = int.Parse(Session["price"].ToString()) * int.Parse(Session["day"].ToString());
How to make it only add 80 if ONLY user select “yes” in drop down list. I store the selection in session
Session["IsChauffeurUsed"] = DropDownList4.SelectedItem.Text;
This depends on the value being set to “Yes” in the Dropdown.