I have a form for on-line estimation of cleaning services. I would now like to include coupons and want to add textboxes (plural) for coupon codes. I use codes like WC1000 for window cleaning. I have done the basic addition of pircing, but I need to delve into some deeper math for coupon codes - by that I mean the codes themselves to see if someone is trying to enter an invalid coupon code. I have declared all of the values for the codes. I just need a statement like:
Dim discount As Integer = 0
if txtCoupon.Text = WC1000 then discount = 20
if txtCoupon.Text = WC1010 then discount = 15
if txtCoupon.Text = WC1020 then discount = 10
all else = lblCoupon.Text = "Invalid Coupon Code"
I thought about just making the coupons automatic by clicking a checkbox, but then I also have coupons that you can win, and customer service coupons as well as gift certifiicates, I want them to be able to enter those as well. I also want to be ...
Go to the complete details ...