Finding controls?
Hi all,
Can anyone see anything wrong with this code?
foreach(Edit Ctrl in divTemplate.Controls)
{
try
{
Ctrl.FirmaID = Convert.ToInt32(dsFirma1.Tables[0].Rows[0]["ID"].ToString());
}
catch
{
Response.Write(Ctrl.ID.ToString());
}
}
Here is the HTML:
I am trying to find all the Edit controls in the DIV. this is all the code between the Form tags.
Thanks in Advance,
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

jinwolfRank #7,492 · 240 reputationPosted Jul 12, 2004, 3:33 AM EDT
jinwolfRank #7,492 · 240 reputationPosted Jul 12, 2004, 3:41 AM EDT