E
encoad
Hi everyone,
I've run into another road block that google.com isn't able to solve
since I don't even know where to start when searching.
In my webapp, a certain number of table rows containing textboxes is
displayed depending on a number chosen by the user. For example, if
the user chooses 3, there will be three rows displayed with 4 texts
boxes in each row. Using a for loop to create the textboxs, I've
appended a number to the ID of each of the textbox. so Length1,
Width1, Height1, Length2, Width2, Height2 etc...
This is all fine and dandy, but I can't figure out how to reference
these textboxes (to get the information of them and into a struct
stored in a session variable). I recall in ASP that there was some
function which allowed you to evaluate a string and have it behave as
though you entered a proper variable name. For example, I'm looking
for something to convert "Length" + counter.ToString() into something
the compiler will process as a variable. (so the compiler only sees
Length1, Length2 etc... (seeing it as a proper variable name, not as
string).
Any help would be appreciated.
Thanks,
Nicholas
I've run into another road block that google.com isn't able to solve
since I don't even know where to start when searching.
In my webapp, a certain number of table rows containing textboxes is
displayed depending on a number chosen by the user. For example, if
the user chooses 3, there will be three rows displayed with 4 texts
boxes in each row. Using a for loop to create the textboxs, I've
appended a number to the ID of each of the textbox. so Length1,
Width1, Height1, Length2, Width2, Height2 etc...
This is all fine and dandy, but I can't figure out how to reference
these textboxes (to get the information of them and into a struct
stored in a session variable). I recall in ASP that there was some
function which allowed you to evaluate a string and have it behave as
though you entered a proper variable name. For example, I'm looking
for something to convert "Length" + counter.ToString() into something
the compiler will process as a variable. (so the compiler only sees
Length1, Length2 etc... (seeing it as a proper variable name, not as
string).
Any help would be appreciated.
Thanks,
Nicholas