I have a drop down list where I stored 3 elements inside it.
<asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="True"
Height="22px" Width="134px">
<asp:ListItem>Please Choose</asp:ListItem>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:DropDownList>
When user choose Yes in drop down, the YES will be stored in session. Chauffeur service will charge user $30.
Session["IsChauffeurUsed"] = DropDownList4.SelectedItem.Selected;
The thing is what to do if user select YES the the current amount that user have to pay is
int totalValue = 0;
int total = 0;
totalValue = int.Parse(Session["price"].ToString()) * int.Parse(Session["day"].ToString());
Label8.Text = totalValue.ToString();
*Label8.text will be plus 30 (if user select yes)
I got stuck at the bold line. I dont know how to add 30 in totalValue if user select YES I hope u guys can help me. Cheers.