New to HTML and C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to place data into an HTM file for ease of viewing by an end
user, but I'd also like to read the contents of the file into a list and
display it to the user via a C# application.

The data would be something like this - the topics may vary in number from
one subject to the next subject.

Subject A
Subject A topic 1
Subject A topic 2
Subject B
Subject B topic 1
Subject C
Subject C topic 1
Subject C topic 2
Subject C topic 3

Can someone point me in the right direction of how to accomlish this? I am
great with reading samples.
 
store your data as an XML document.

When it comes time to render the HTML, use XSL to convert it to HTML (either
on the fly, or generate it again each time the data changes).
When it comes time to use it in C#, use the XSD.EXE app to create the C#
class that matches the XML. Then load the data directly into a C# structure
and bind it to the control.

The code for these options is small and fairly simple to produce.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top