I am getting compilation error (bold line): BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'.
-- I am using ASP.NET 2.0 - w/AJAX 2.0 Extension.
-- I am binding the gridview with mysql data.
Gridview1.datasource = prod.GetData() -- returns datatable
Gridview1.databind
The problem is with the updatepanel (i think). because if i remove the updatepanel all works fine.
<asp:UpdatePanel UpdateMode="Always" runat="server">
<ContentTemplate>
<asp:LinkButton ID="rateit" runat="server" CssClass="vote" Height="56px" Width="63px"
CommandArgument='<%# Container.DataItem("ID") %>'><%# Container.DataItem("votes") %></asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
Any pointers?
Thanks.
Thanks,
Murali Bala
-- I am using ASP.NET 2.0 - w/AJAX 2.0 Extension.
-- I am binding the gridview with mysql data.
Gridview1.datasource = prod.GetData() -- returns datatable
Gridview1.databind
The problem is with the updatepanel (i think). because if i remove the updatepanel all works fine.
<asp:UpdatePanel UpdateMode="Always" runat="server">
<ContentTemplate>
<asp:LinkButton ID="rateit" runat="server" CssClass="vote" Height="56px" Width="63px"
CommandArgument='<%# Container.DataItem("ID") %>'><%# Container.DataItem("votes") %></asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
Any pointers?
Thanks.
Thanks,
Murali Bala