G
Guest
Hi
I'm overloading the onInit event in my custom page class and checking the requested Id in the Url is present in my XML file and also checking a couple of attributes for that Id. I'm using the XMLDocument.Load method and the SelectSingleNode method to check for my Id. I'm wondering whether it would be better to store the XML document in the session state rather than use the load method each time? The XML file that is used could change at any time so it will not always be possible to read from the session, sometimes I will need to repopulate the session first by using the load method. I'm not sure what the overhead with the load method is though
Any one got any ideas suggestions? FYI the xml file is approx 80KB
I'm overloading the onInit event in my custom page class and checking the requested Id in the Url is present in my XML file and also checking a couple of attributes for that Id. I'm using the XMLDocument.Load method and the SelectSingleNode method to check for my Id. I'm wondering whether it would be better to store the XML document in the session state rather than use the load method each time? The XML file that is used could change at any time so it will not always be possible to read from the session, sometimes I will need to repopulate the session first by using the load method. I'm not sure what the overhead with the load method is though
Any one got any ideas suggestions? FYI the xml file is approx 80KB