Click to See Complete Forum and Search --> : Container compilation error


Zolix2010
November 14th, 2004, 08:28 AM
can someone please tell me what seems to be the problem?
i got this error message -
CS0246: The type or namespace name 'Container' could not be found (are you missing a using directive or an assembly reference?)

from this code -

<asp:datagrid id="dataGrid1" runat="server" BorderStyle="Solid" Font-Names="Verdana" Font-Size="XX-Small"
AllowSorting="True" AllowPaging="True">
<Columns>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
<asp:TemplateColumn>
<ItemTemplate>
<%DataBinder.Eval(Container.DataItem,"Name");%>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtName" runat="server" Text='<%DataBinder.Eval(Container.DataItem,"Name");%>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle Mode="NumericPages"></PagerStyle>
</asp:datagrid><br>



Avi.