R
Rodusa
I am trying to loop all controls in a form with no success. For
example, Let's say we place three TextBoxes in the form and we use the
code below:
foreach (Control c in Page.Controls)
{
Response.Write(c.ID);
}
It is returning nothing. I check the <form runat="server"> and it is in
there.
What is wrong?
Rod
example, Let's say we place three TextBoxes in the form and we use the
code below:
foreach (Control c in Page.Controls)
{
Response.Write(c.ID);
}
It is returning nothing. I check the <form runat="server"> and it is in
there.
What is wrong?
Rod