[quoted text, click to view] > ++++++++++++++++++++++++++++++++++++++++++++++++++
> Problem:
> cell.InnerHtml is not a property of cell
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuihtmlcontrolshtmlcontainercontrolclassinnerhtmltopic.asp
And HtmlTableCell inherits from HtmlContainerControl.
So yes, InnerHtml is a property of cell (HtmlTableCell to which I had
cast variable 'cell').
[quoted text, click to view] > 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/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuihtmlcontrolshtmlcontrolclassattributestopic.asp
which implements Item
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiattributecollectionclasstopic.asp
So yes, you can use Item (on Attributes of course).
[quoted text, click to view] > 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/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuicontrolcollectionclasstopic.asp
Why don't you please compile the code first and then comment.
I have compiled it and everything works as expected.