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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -