Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'.

Status
Not open for further replies.

s2001

Programmer
Dec 7, 2001
132
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top