Your request is a little unclear in generating static html - isn't that
dynamic html - otherwise its not very static. . You could use ASP.NET to
output HTML as thats all ASP.NET does really, or you could simply write
pages using the file system classes by opening blank files and adding text
to them.
--
Regards
John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------
"chris" <ne********@boxfrog.com> wrote in message
news:LZ********************@comcast.com...
Ivan Krivyakov wrote: "Hiroaki SHIBUKI" <jp****@microsoft.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...HI,
You can use XML+XSL to generate html.
If you'll use ADO.NET for data access, then you can get dataset in XML
DOMobject. an then, you can transform XML DOM object to HTML using XSL.
I'm a bit stuck and am wondering what is the best way to generate
statichtml from a C# program? Any pointers would be helpful. The info is
notcurrently coming from a database but it might be in the future.
I think he means generating HTML from C# source code.
So that
using System;
namespace Test
{
class X
{
}
}
becomes something like
<html>
<body>
<pre>
<font color="blue">using</font> System;
<font color="blue">namespace</font> Test
{
<font color="blue">class</font> X
{
}
}
</pre>
</body>
</html>
Ivan
No, I want to generate a web page from C#.