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
Post a Comment