Hello everybody..
Am a beginner in .net.I have an issue to be resolved.I have an asp page that lists out some 'n' number of fields like SPID,BASIC TITLE,BASIC FIRST NAME,HOME PHONE NUMBER etc.After entering the values for these fields in a textbox and once when i click SUBMIT button i need the fields listed in that asp page in a text file but in an xml format.so when i open the final text file i must get something like this:
<BATCH NAME="134323NXDM2323432"><DOCUMENT><PAGE DOC_ID="NX23232", SPID="asd",BASIC TITLE="sadf",BASIC FIRST NAME="sadf",HOME PHONE NUMBER="23423432"...></PAGE></DOCUMENT></BATCH>
Now the issue i face is the field order in the text file is not the same as listed in the asp page .So if i have spid,basic title,gna logo in the asp page, i get gna logo,spid,gna pct something like that.The code that ive used to get all the field names in the text file is
for each field_name in request.form
xmlNode.setAttribute field_name, request.form(field_name)
So i get all the fields in an xml format in the text file but t field order differs.So plz suggest me any solution.
Thank You
sbind77
Am a beginner in .net.I have an issue to be resolved.I have an asp page that lists out some 'n' number of fields like SPID,BASIC TITLE,BASIC FIRST NAME,HOME PHONE NUMBER etc.After entering the values for these fields in a textbox and once when i click SUBMIT button i need the fields listed in that asp page in a text file but in an xml format.so when i open the final text file i must get something like this:
<BATCH NAME="134323NXDM2323432"><DOCUMENT><PAGE DOC_ID="NX23232", SPID="asd",BASIC TITLE="sadf",BASIC FIRST NAME="sadf",HOME PHONE NUMBER="23423432"...></PAGE></DOCUMENT></BATCH>
Now the issue i face is the field order in the text file is not the same as listed in the asp page .So if i have spid,basic title,gna logo in the asp page, i get gna logo,spid,gna pct something like that.The code that ive used to get all the field names in the text file is
for each field_name in request.form
xmlNode.setAttribute field_name, request.form(field_name)
So i get all the fields in an xml format in the text file but t field order differs.So plz suggest me any solution.
Thank You
sbind77