Hy everybody,
I need to generate a code.
For example I have a
=>DropDownList wich contains Adult, Child, Infant
=>Textbox which contains MinAge 2,3
=>Textbox which contains MaxAge 14,16 for example
and the field
=> Code wich is automatically generated
for example if I select Adult, MinAge 2, MaxAge 14 the code should be 00214
(0 for Adult)
Can someone help me?
Thak you
Function buildString
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Santhosh VeeraramanRank #1,369 · 1.2K reputationPosted May 14, 2008, 4:07 AM EDT
dropdowncontrol.SelectedValue + txtMinAge.text + txtMaxAge.text :)
i think i misunderstood ur requirement. are you looking for parsing single digit integer to double digit with "0" concatenated kind of stuff..?? use switch case :)