Here's my repeater:
I'm getting an error with the textbox, saying:
"System.Web.HttpException: 'TextBox' cannot have children of type 'DataBoundLiteralControl'."
I'd like to pull the data from the table and display it in the textbox, allowing the user to update it. The data is multiple rows returned.
Code:
<asp:repeater id=rptDiet runat="server">
<ItemTemplate>
<asp:Textbox ID="txtDiet" Runat="server" Visible="True">
<%#Container.Dataitem("Data")%>
</asp:TextBox>
</ItemTemplate>
</asp:repeater>
I'm getting an error with the textbox, saying:
"System.Web.HttpException: 'TextBox' cannot have children of type 'DataBoundLiteralControl'."
I'd like to pull the data from the table and display it in the textbox, allowing the user to update it. The data is multiple rows returned.