Hi,
I have 3 Buttons on a web form, btn1, btn2 and btn3. I would like to loop thru a for-loop and set the Text property for each, namely 1, 2 and 3 respectively. Can someone please suggest a way to do it. I don't know how to get a reference to each button programmatically.
for (btncnt = 1; btnctn<=3; btncnt++)
{
oButton.Text = btncnt.ToString()
}
Regards,
Neil