Hi
I have an aspx page which reads from a Xml file using XmlDcoument object, process it and stores the data in a datatable. The datatable may contain from 10 to max 1000 rows depending on the Xml file.
I am using couple of update panels and hence there are frequent postbacks expected. My question is which would be better performancewise :
1. Store the datatable in viewstate OR
2, Read the data from Xml file and build the datatable during each postback.
Pls note that the xml file is very big and the processing involves multiple loops before storing the data in the required format in the datatable.
any help would be appreciated.
thanks
Kit.
I have an aspx page which reads from a Xml file using XmlDcoument object, process it and stores the data in a datatable. The datatable may contain from 10 to max 1000 rows depending on the Xml file.
I am using couple of update panels and hence there are frequent postbacks expected. My question is which would be better performancewise :
1. Store the datatable in viewstate OR
2, Read the data from Xml file and build the datatable during each postback.
Pls note that the xml file is very big and the processing involves multiple loops before storing the data in the required format in the datatable.
any help would be appreciated.
thanks
Kit.
Comment