I have the code below which is basically my table with a repeater that will then display each row.
This was working fine until I had to add runat="server" and an id to my table.
I had to do this as I need to export the table to excel but I am now getting:
BC30311: Value of type 'System.Web.UI.WebControls
cannot be converted to 'System.Web.UI.HtmlControl
Is there any way around this?
Thanks in advance.
<table class="gridviewheader" runat="server" id="tblCostPrice" cellpadding="0" border="1" cellspacing="0">
<asp:Repeater ID="rptCostPrice" runat="server" >