Casting a LiteralControl to a Table
Posted on 2004-08-25
I have created a normal HTML table on the fly and I have added it to a panel using Add(new LiteralControl(sHTML))
The thing is now I want to process the data in the table, therefore I would like to somehow cast the literal control to a table.
I have tried doing a cast but it does not work.
I have tried creating a table using Table, tableRow, TableCell but once the table is added, it reads out as a LiteralCOntrol again.
I would like to avoid having to erite a parser for the text of the literal control and just be able to put the data into a table structure whcih would be then accessible through my C# code...