I have markup with nested tables, rowspans and colspans in a string object. I would like to create an equivalent .net object (table, grid, anything..) from it so that I can work on rows and columns of the table easily.
I am thinking when asp.net receive request from the browser with all the markup, .Net run time creates equivalent objects for us. Can I achieve the same thing programatically except that there is no table control on the page.
Or perhaps some sort of deserialization trick?
Any ideas?
You can’t. See SLaks comment.
You can however use HTMLAgilityPack, as suggested in this question.