etm9413 0 Newbie Poster

Hi,
I want to display the result of a XLS transform to an ASP web page.
The C# codebehind I actually have (triggered from button in the ASPX webpage) displays the result of a transform "sample1.xslt" to an HTML file "result.html"... I wonder what can I use instead of XmlTextWriter to display the same results in the ASPX web page I already have instead of writing it to an HTML file. Here is the C# codebehind:

using (MemoryStream ms = new MemoryStream
(System.Text.ASCIIEncoding.UTF8.GetBytes(xmlOut)))
            { ms.Position = 0;
              ms.Seek(0, SeekOrigin.Begin);
              XPathDocument xmlDoc = new XPathDocument(ms);
              XslTransform myXslTrans = new XslTransform();
              myXslTrans.Load("sample1.xslt");
              XmlTextWriter myWriter = new XmlTextWriter("result.html", null);
              myXslTrans.Transform(xmlDoc, null, myWriter);
            }

Thanks a lot