Click to See Complete Forum and Search --> : ASP.net IENUMERATOR


Hughesie11
10-17-2007, 04:18 AM
Hi, heres my problem.:confused: :confused:
I am writing the values and field names of a form to an XML file, e.g
I have a text box called “txt_name” with value ‘alan’ in it, so the XML will be
<txt_name> alan</txt_name>

I am using the IEnumerator to loop throug the form, I am specify the table name to read from, however it will only write the first row of the table, here is my .cs code :

Table t1 = (Table)Page.Form.FindControl("jointproposal");
IEnumerator IEnum = t1.Rows[0].Cells[0].Controls.GetEnumerator();


Any ideas?

buntine
10-19-2007, 11:12 PM
Moved to .NET