It would be a simple table on the page, which has some initial cells and another user should enter. I use DataList with ItemTemplate:
<ItemTemplate>
<asp:TextBox ID="CellTextBox" runat="server" Text='<%# Bind("Cell") %>' />
</ItemTemplate>
In code i override DataBind() of this control:
public override void DataBind()
{
MyDataList.DataSource = dataTable;
MyDataList.DataBind();
}
Now it doesn't work. User enter some cells and click submit button, but dataTable (in the method which handels this button OnClick event) doesn't contains user's data - just only initial. What should I do?