How to refer a control with name?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

There have many controls in a Web form.
I have save the names of these controls in a string array like:
string[] ControlsName= {"Edit1", "Label1", "Edit2".....}

I want to refer Label with ControlsName[1].
How can I do?
 
Hello ad,

Page.FindControl method

a> There have many controls in a Web form.
a> I have save the names of these controls in a string array like:
a> string[] ControlsName= {"Edit1", "Label1", "Edit2".....}
a> I want to refer Label with ControlsName[1].
a> How can I do?
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top