Hi,
consider the following code snippet:
Now my problem is that I want to obtain the HTML source code of the "table" such that I could output this in a browser control of a windows application. Anyone ever done this or can help me on this? I've tried using HtmlTextWriter with no success. I'm probably not doing the correct thing here...Code:HtmlTable table = new HtmlTable(); HtmlTableRow row1 = new HtmlTableRow(); HtmlTableCell cell1 = new HtmlTableCell(); HtmlTableCell cell2 = new HtmlTableCell(); cell1.InnerText = "Test1"; cell2.InnerText = "Test2"; row1.Cells.Add(cell1); row1.Cells.Add(cell2); table.Rows.Add(row1);




Reply With Quote