J
Joakim Nilsson
Hi
How do I get the name of a textboxcontrol from within my code.
Say I have a textbox named "txtUser"and want to do this:
string tmp;
foreach (Control control in this.Controls)
{
if (control is TextBox)
{
//here I want to get the name of the textbox...
tmp = control.???????? //this is where I'm stuck!
....
....
}
....
....
}
Is this possible or....?
Thanks.
/Joakim
How do I get the name of a textboxcontrol from within my code.
Say I have a textbox named "txtUser"and want to do this:
string tmp;
foreach (Control control in this.Controls)
{
if (control is TextBox)
{
//here I want to get the name of the textbox...
tmp = control.???????? //this is where I'm stuck!
....
....
}
....
....
}
Is this possible or....?
Thanks.
/Joakim