G
Guest
I could not find the answers for these two questions about in Xml server control
1. Is it possible for control to keep its ViewState? Even if I set EnableViewState = true the control does not seem to keep it, so I have to reload it on each postback
2. How do I display raw xml data? My control displays data with a stylesheet fine
XmlDocument doc = new XmlDocument()
doc.LoadXml (xml)
XslTransform trans = new XslTransform()
trans.Load (Server.MapPath("WalMartManifest2.xslt"))
xmlMain.Document = doc
xmlMain.Transform = trans
If I simply comment out the last line (Transform), no data is displayed..
Thanks
-Stan
1. Is it possible for control to keep its ViewState? Even if I set EnableViewState = true the control does not seem to keep it, so I have to reload it on each postback
2. How do I display raw xml data? My control displays data with a stylesheet fine
XmlDocument doc = new XmlDocument()
doc.LoadXml (xml)
XslTransform trans = new XslTransform()
trans.Load (Server.MapPath("WalMartManifest2.xslt"))
xmlMain.Document = doc
xmlMain.Transform = trans
If I simply comment out the last line (Transform), no data is displayed..
Thanks
-Stan