C# .NET - custom insert in a datalist that retrieve data by xml file and insert data into database?

Asked By sara asa on 18-Dec-13 10:42 AM
hi guys...
actually i have a datalist  that show all data as email,name from a xml file.till here everything work correct.then i need to insert datalist item into my database.i put a link button .but before i always read data  from textbox and controls so i didnt need any command argument in link button.but now my datalist retrieve items from a xml file and there is no id there...so  when i click in insert linkbutton it cant read items from datalist by foreach or any itemcommant event.because it is a custom insert and it need its special arguments how can i solve this problem?

should i put any  unique id to my xml file and pass it to link button?is this scenario is best way ?then say if e.comandargument.tostring=xmlreader that element id then u can open connection  and do the insert in db!oh jesus plz help... at least give me idea!