|
-
May 31st, 2007, 12:02 PM
#3
Re: eval a string into an object
 Originally Posted by bsw2112
say I have a textbox with attribute id="test_1"
How could I reference this id if I am in a loop
ex.
Code:
for i as Integer = 0 to 5
' I would like to give this textbox a value, I thought I could do something like
Eval("test_" & i).Value = "someValue"
' but that did not work, I also tried to do
dim tmpTB as Textbox = Ctype("test_" & i, TextBox)
Next
Is there a way to do this?
bsw
In order to do this, you have to put the textboxes into a collection (array, list, arraylist...) then looping thru the collection.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|