C# html table builder(tr3v.net)
submitted by Tr3v(376) 3 years, 10 months ago
The purpose of this class is to simplify the generation of basic HTML tables.
7 comments |category: ASP.NET |Views: 739 Tweet
tags: ASP.NET another
Add a live kick counter to your blog >>
You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:
Simply copy and paste this HTML into your blog post.
posted by samdnp(975) 3 years, 10 months ago 0
Hey, this look really neat--but I couldn't download it successfully. Could you shout when you fix it?
Reply
posted by Tr3v(376) 3 years, 10 months ago 0
The download option is now working, apologies for that!
posted by DamienG(1405) 3 years, 10 months ago 0
The built-in HtmlTable class in System.Web.HtmlControls can be used in a similar way. [)amien
posted by aquinas(20) 3 years, 10 months ago 0
How about you change the functions so that they return the builder. Then you could do this: TableBuilder tb = new TableBuilder(); tb.AddHeaderRow("Col 1", "Col2", "Col 3") .AddRow("col 1", "col 2", "col 3") .AddRow("col 1a", "col 2a", "col 3a"); Just a thought
Unless I misunderstand you, does it not do that already?
Sorry, after re-reading your post, I see what you mean! I didn't think of that when I built the class, the download is for the source so anyone can adapt it to suit their individual needs. If I get round to it i'll update it to do exactly that as it would be a useful addition. Thanks for the feedback.
posted by Tr3v(376) 3 years, 8 months ago 0
I've finally gotten around to adding that update, the AddHeaderRow and AddRow methods now return the builder so you can do .AddRow(...).AddRow(...); if you wish
All tags Your tags
Suggest a new category
dpeterson(1821)
pwhe23(1134)
rcash(540)
vijayst(524)
bsenoff(361)
bnaya(312)
isenthil(260)
winphonegeek(260)
Matt_TCF(253)
KMillerr(240)