Mono Tips

I run an project on Ubuntu using Mono. I get below error on one page: 

Cannot add a System.Web.UI.HtmlControls.HtmlGenericControl to System.Web.UI.HtmlControls.HtmlTableRow

I started to examine related part and I noticed the problem. Here is a sample:

<table id="tbltest" runat="server">
        <col style="width:50px;" />
        <col style="width:100px;" />

It fixed when I removed runat="server" from table. Another solution is removing colgroup parts.
Even I found a solution, I didn't understand why this is firing error.


Share Share Editor: editor | Posted: 2014/05/26 | Views: 4347


19 + 13 =
Home | Search | Contact | Terms