473,480 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

static html generation in C#

Hello all -

I'm a bit stuck and am wondering what is the best way to generate static
html from a C# program? Any pointers would be helpful. The info is not
currently coming from a database but it might be in the future.

TIA

--
N@BF
Nov 15 '05 #1
5 4379
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 DOM
object. an then, you can transform XML DOM object to HTML using XSL.

--
Hiroaki SHIBUKI
"chris" <ne********@boxfrog.com> wrote in message
news:8s********************@comcast.com...
Hello all -

I'm a bit stuck and am wondering what is the best way to generate static
html from a C# program? Any pointers would be helpful. The info is not
currently coming from a database but it might be in the future.

TIA

--
N@BF


Nov 15 '05 #2
Hiroaki SHIBUKI wrote:
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 DOM
object. an then, you can transform XML DOM object to HTML using XSL.


Hello -

Thanks for the reply. Any example you could point me to? Thanks.
Nov 15 '05 #3
"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 DOM
object. 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 static
html from a C# program? Any pointers would be helpful. The info is not
currently 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
Nov 15 '05 #4
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 DOM
object. 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 static
html from a C# program? Any pointers would be helpful. The info is not
currently 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#.

Nov 15 '05 #5
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#.

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1455
by: max | last post by:
Hi all, I am looking for a recent rundown of HTML generation frameworks rated by 1) being up-to date 2) power 3) complexity and more informally - what do python folks like to use for HTML...
115
7460
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
9
3905
by: ur8x | last post by:
Hi, I was wondering if there is a difference between declaring a static variable outside of the method as oppose to declaring it as a local variable? Thanks.
5
2050
by: Rich S | last post by:
I created this neat little .net site which tracks the inventory of my little widge company giving me real time inventory counts and whatnot. It uses your standard code that calls a stored procedure...
5
3137
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
9
2244
by: Chris Pearl | last post by:
Are there Python tools to help webmasters manage static websites? I'm talking about regenerating an entire static website - all the HTML files in their appropriate directories and...
6
7646
by: smmk25 | last post by:
Before I state the problem, I just want to let the readers know, I am knew to C++\CLI and interop so please forgive any newbie questions. I have a huge C library which I want to be able to use in...
5
1370
by: Chris Thomasson | last post by:
Here is a way that you can "automate" static initialization of arrays with customized data. Here is a quick example: -------------------- #include <stdio.h> #include <stddef.h> #include...
5
2433
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.