Does anyone know of a way to "extract" the HTML from dynamically created controls in ASP.NET (VB) and save it to a string variable? Here is what I'm trying to do: Ive got a very nicely designed Database driven table that is adding cells and rows to the table control per iteration of DbRow. When the user clicks a button, I am going to send them an HTML-based email of that table with all of the formatting, etc. Instead of *rebuilding* the table piece by piece into an html string, is there a way just to extract the raw HTML with all of the formatting so that I can include it into a message body? Something like : TableControl.ToHTML(), if it existed? The good news is: all of the table cells just contain dynamic labels and data. Nothing funky. No dropdowns, no textboxes, nada. Hopefully this makes sense. :)
Any help is appreciated!