private void Page_Load ( object src, EventArgs e ) {
System.Xml.XmlDocument doc = new System.Xml.XmlDocument ( );
doc.Load ( Server.MapPath ( "MySource.xml" ) );
System.Xml.Xsl.XslTransform trans = new
System.Xml.Xsl.XslTransform ( );
trans.Load ( Server.MapPath ( "MyStyle.xsl" ) );
Xml1.Document = doc;
Xml1.Transform = trans;
}
Private Sub Page_Load ( ByVal src As Object, ByVal e As EventArgs ) Handles MyBase.Load
Dim doc As System.Xml.XmlDocument = New System.Xml.XmlDocument ( )
doc.Load ( Server.MapPath ( "MySource.xml" ) )
Dim trans As System.Xml.Xsl.XslTransform = _
New System.Xml.Xsl.XslTransform
trans.Load ( Server.MapPath ( "MyStyle.xsl" ) )
Xml1.Document = doc
Xml1.Transform = trans
End Sub |