This is most likely a trivial question but I'm having a hard time finding an
example.
I am writing a script using C# 1.1 which iterates over AD accounts and
builds a DataTable for those with passwords expiring within various periods
of time. After sending mail to the users, I want to send a report to the
help desk with a table of users included. It seems to me that the easiest
way to do it is to convert the DataTable to HTML.
Although there are hundreds of examples available online, they all focus on
ASP or DataBinding with windows forms - neither of which I am interested in.
Of course, I can iterate through the rows of the DataTable and manually
create the HTML (which isn't too painful) but it seems that I'm missing
something important. I tried converting it to the System.Web.HtmlTable but
even that wouldn't spit out the HTML I'm looking for.
Any pointers?
Thanks, bob