V
vitaly.tomilov
I'm using an ASP.NET form to display data from my database table, and
I'm doing it in the following way:
XmlDataDocument doc = new XmlDataDocument(mydataSet);
XPathNavigator nav = doc.CreateNavigator();
XslTransform xslTran = new XslTransform();
xslTran.Load("Transform.XSL");
xslTran.Transform(nav, null, Response.Output, null);
This produces me a nice HTML page with enhanced formatting specified
within Transform.XSL, and streams the result into the output.
The problem is the result is written into the output without any
control of where and how it will be formatted. I want to use some sort
of a place-holder that I could visually place on the form at design
time to set sizes and align with other UI elements on the form.
The question is - what could be such a place-holder into which I
could redirect all the output, and how can I use it?
Method Transform writes out into a stream, so, whatever place-holder
must expose its stream object or something, methinks....
Anyways,
- Suggested by some people control System.Web.UI.WebControls.Xml
won't do, as it doesn't support XSL formatting.
- Writing resulting HTML into a file and then reading it in as mere
text - sounds more like a nonsense.
Other than that, I gave up looking...
Please somebody help me!!!
I'm doing it in the following way:
XmlDataDocument doc = new XmlDataDocument(mydataSet);
XPathNavigator nav = doc.CreateNavigator();
XslTransform xslTran = new XslTransform();
xslTran.Load("Transform.XSL");
xslTran.Transform(nav, null, Response.Output, null);
This produces me a nice HTML page with enhanced formatting specified
within Transform.XSL, and streams the result into the output.
The problem is the result is written into the output without any
control of where and how it will be formatted. I want to use some sort
of a place-holder that I could visually place on the form at design
time to set sizes and align with other UI elements on the form.
The question is - what could be such a place-holder into which I
could redirect all the output, and how can I use it?
Method Transform writes out into a stream, so, whatever place-holder
must expose its stream object or something, methinks....
Anyways,
- Suggested by some people control System.Web.UI.WebControls.Xml
won't do, as it doesn't support XSL formatting.
- Writing resulting HTML into a file and then reading it in as mere
text - sounds more like a nonsense.
Other than that, I gave up looking...
Please somebody help me!!!