Advertisement
Guest User

Untitled

a guest
May 22nd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using System.Xml;
  8. using System.Xml.Xsl;
  9. using System.Xml.XPath;
  10.  
  11.  
  12. namespace banks_columngraph
  13. {
  14. public partial class banks : System.Web.UI.Page
  15. {
  16. protected void Page_Load(object sender, EventArgs e)
  17. {
  18. string MyXmlPath = Request.PhysicalApplicationPath + "\\banks.xml"; //Li Fen can edit whatever^^
  19. string MyXsltPath = Request.PhysicalApplicationPath + "\\banks.xslt";
  20. XPathDocument xmlDoc = new XPathDocument(MyXmlPath);
  21. XslCompiledTransform XSLTransform = new XslCompiledTransform();
  22. XSLTransform.Load(MyXsltPath);
  23. XSLTransform.Transform(MyXmlPath, null, Response.Output);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement