So im actually creating a fastfood menu in which save how many times a button been clicked as a variable. So I can multiply it to its value. For example if i click btnChicken a variable will count how many btnChicken been clicked then it will multplied on the amount i set for the value of each chicken.
C_Oleyers
0
Newbie Poster
Recommended Answers
Jump to PostWith a vague description and no code supplied it is almost impossible to figure out exactly what you want to do.
If the task is to count "every" click probably you may want to consider creating a user control.
Your code will look something like this -
Jump to PostGood topic and some valid comments. Don't forget to display the quantity (number) each time the button is pressed, and there should also be a way to reduce the number if the customer changes his/her mind, or presses the button too many times by mistake.
All 5 Replies
rproffitt
2,580
"Nothing to see here."
Moderator
AndreRet
526
Senior Poster
chuckc
21
Newbie Poster
stokes
0
Newbie Poster
Mike_74
0
Newbie Poster
Banned
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.