2
Answers

Finding controls?

jinwolf

jinwolf

20y
2.1k
1
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,
Answers (2)
Next Recommended Forum