W
WesIdell
Hi All:
I need some advice regarding a problem that I'm experiencing. I'm using
a group of TextBox controls in the .aspx page and am using a function
in the .cs code to perform some actions with the values. The problem is
that when I try to retrieve the Text property, it is always equal to ""
(an empty string) even though that a value is keyed in. I'm trying to
do the same function with CheckBoxes and an array as well.
Here's my code...
TextBox[] txBox = { TextBox1, TextBox2, TextBox3, TextBox4, TextBox5,
TextBox6, TextBox7 };
The controls' ids are TextBox1......TextBox7. I don't know if I'm
handling the controls properly in the array or not. Is the way in which
I've written it instanciating a new TextBox1 thus initializing the
values? That is all that I can imagine. Also, if this is the case, what
is the proper way of making an array from like controls so that I can
use a 'for' loop and functions with it instead of writing the code out
the long way. Thanks in advance for any help or advice that anyone can
provide.
Wes
I need some advice regarding a problem that I'm experiencing. I'm using
a group of TextBox controls in the .aspx page and am using a function
in the .cs code to perform some actions with the values. The problem is
that when I try to retrieve the Text property, it is always equal to ""
(an empty string) even though that a value is keyed in. I'm trying to
do the same function with CheckBoxes and an array as well.
Here's my code...
TextBox[] txBox = { TextBox1, TextBox2, TextBox3, TextBox4, TextBox5,
TextBox6, TextBox7 };
The controls' ids are TextBox1......TextBox7. I don't know if I'm
handling the controls properly in the array or not. Is the way in which
I've written it instanciating a new TextBox1 thus initializing the
values? That is all that I can imagine. Also, if this is the case, what
is the proper way of making an array from like controls so that I can
use a 'for' loop and functions with it instead of writing the code out
the long way. Thanks in advance for any help or advice that anyone can
provide.
Wes