L
Leo Muller
Hi,
On my webform I have three webcontrols (textboxes).
question1
question2
question3
on the code behind, I want to add to one of these a value, e.g. number2.
I want to write something like this: Control("question" & 2).text =
"something"
Because I don't know yet which one I want to write to.
I could do a select case: case 2: question2.text = "something", but I am
sure there is a better way.
How can I do this?
Thanks,
Leo
On my webform I have three webcontrols (textboxes).
question1
question2
question3
on the code behind, I want to add to one of these a value, e.g. number2.
I want to write something like this: Control("question" & 2).text =
"something"
Because I don't know yet which one I want to write to.
I could do a select case: case 2: question2.text = "something", but I am
sure there is a better way.
How can I do this?
Thanks,
Leo