c# change textbox name in code -


i wondering if possible:

for(int = 0; < 7; i++) {     textbox + + .text = astring; } 

i want change piece of code work on multiple textboxes, without having type whole code 6 times. know if possible , how? :3

in c# can find control in page aspx.

example:

for (int = 0; < 10; i++)  {       textbox textbox = this.page.findcontrol("textbox" + i.tostring()) textbox;      if (textbox != null)      {         textbox.text = "change text";      }   } 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -