++++++++++++++++++++++++++++++++++++++++++++++++++
Problem:
cell.InnerHtml is not a property of cell
http://msdn.microsoft.com/library/de...rhtmltopic.asp
And HtmlTableCell inherits from HtmlContainerControl.
So yes, InnerHtml is a property of cell (HtmlTableCell to which I had
cast variable 'cell').
further,
table1.Controls[0].Controls[0]
( System.Web.UI.HtmlControls.HtmlTableCell )
only lists the attributes, not the item
Attributes is an AttributesCollection
http://msdn.microsoft.com/library/de...butestopic.asp
which implements Item
http://msdn.microsoft.com/library/de...classtopic.asp
So yes, you can use Item (on Attributes of course).
Problem:
as far as I know, the items collection of
System.Web.UI.HtmlControls.HtmlTableCell is not enumerable
Problem :)
1) HtmlTableCell does not have items collection (as you yourself said
few lines ago).
2) Whichever object has Items, that is enumerable, for the type of
unit of items.
3) I had enumerated Controls collections (not Items), which is, yes,
also enumerable
http://msdn.microsoft.com/library/de...classtopic.asp
Why don't you please compile the code first and then comment.
I have compiled it and everything works as expected.