Hi,
Moving from asp.net 1.1 to 2. I have an xml control on a page in the code
behind file I pull in some xml from a remote web site and format it with an
xsl stylesheet, code is just this
Dim s As String = "http://site.com/page.xml"
Dim d As New System.Xml.XmlDocument
Dim u As New System.Xml.XmlTextReader(s)
d.Load(u)
Xml1.Document = d
Xml1.TransformSource = "xsl/StyleSheet.xsl"
The code works fine but VS 2005 is telling me it's obsolete. What would be
the correct way to do this?
Thanks,
Jon
Stanley Alex - 23 Feb 2006 15:25 GMT
Hi Jon,
Try:
Xml1.XPathNavigator = d.CreateNavigator
instead of:
Xml1.Document = d
> Hi,
> Moving from asp.net 1.1 to 2. I have an xml control on a page in the code
[quoted text clipped - 13 lines]
> Thanks,
> Jon