B
BluDog
Hi
I have an Xml control that reflects a tree structure from a serialized
object that is generated in the Page_Load event:
If Not IsPostBack Then
Dim ms As New IO.MemoryStream
Dim ser As New
System.Xml.Serialization.XmlSerializer(Content.Site.GetType)
ser.Serialize(ms, Content.Site)
Xml1.DocumentContent =
System.Text.UTF8Encoding.UTF8.GetString(ms.ToArray)
End If
The transform source is static and therefore set at design time. The
problem i have is that when the postback occurs the Xml control does
not maintain it's transformed document. I cannot perform the transform
when there is a postback because the tree structure is reset.
Any ideas would be greatly appreciated.
Thanks
Blu
I have an Xml control that reflects a tree structure from a serialized
object that is generated in the Page_Load event:
If Not IsPostBack Then
Dim ms As New IO.MemoryStream
Dim ser As New
System.Xml.Serialization.XmlSerializer(Content.Site.GetType)
ser.Serialize(ms, Content.Site)
Xml1.DocumentContent =
System.Text.UTF8Encoding.UTF8.GetString(ms.ToArray)
End If
The transform source is static and therefore set at design time. The
problem i have is that when the postback occurs the Xml control does
not maintain it's transformed document. I cannot perform the transform
when there is a postback because the tree structure is reset.
Any ideas would be greatly appreciated.
Thanks
Blu