F
Flyguy
I am trying to keep from reloading my XmlDocument every time my page reloads.
To do this I am using ViewState.
System.Xml.XmlDocument myDataXmlDoc = new System.Xml.XmlDocument();
myDataXmlDoc.Load("myData.xml");
ViewState["myDataXmlDoc"] = myDataXmlDoc;
When I do this I get the following error:
Type 'System.Xml.XmlDocument' in Assembly 'System.Xml, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as
serializable.
Please let me know of anything I can do.
To do this I am using ViewState.
System.Xml.XmlDocument myDataXmlDoc = new System.Xml.XmlDocument();
myDataXmlDoc.Load("myData.xml");
ViewState["myDataXmlDoc"] = myDataXmlDoc;
When I do this I get the following error:
Type 'System.Xml.XmlDocument' in Assembly 'System.Xml, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as
serializable.
Please let me know of anything I can do.