Dynamically TextBox ID from DataBase - Generating and Retrieving
Posted on 2004-09-02
Hi I have a form that contains a DataRepeater where a varying number of text and textboxes are created depending on the data returned from the database in a given situation:
<asp:Repeater ID="myInputList" runat="server">
<asp:TextBox ID="<%#DataBinder.Eval(Container.DataItem,"DetailID")%>" runat="server"/>
My problem is that I don't know which DetailID is displayed for each textbox and how to refer to it when trying to retrieve the text input.
Should I use some kind of loop somewhere instead?