foreach (System.Web.UI.HtmlControls.HtmlTableRow trow in someTable) var x = trow.InnerText;}
我收到一条错误消息,指出"System.Web.UI.HtmlControls.HtmlTable"不包含GetEnumerator的定义。
foreach (System.Web.UI.HtmlControls.HtmlImage c in ThumbnailPanel.Controls) if (c is System.Web.UI.HtmlControls.HtmlImage) System.Web.UI.HtmlControls.HtmlImage imageBox = (System.Web.UI.HtmlControls.HtmlImageUI.Control,所以我得到以下错误
Unable to cast
Parser Error Message: The base class includes the field 'primtag', but its type (System.Web.UI.HtmlControls.HtmlElement) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl).) is not compatible with the type of control (System.Web.UI.