Link to home
Start Free TrialLog in
Avatar of jagguy
jagguyFlag for Australia

asked on

dynamic textbox

i cant create dynamic textboxes with html commands.
How do i do this?

 For i As Integer = 0 To ds.Tables(0).Rows.Count - 1
       
            strResults.Append("<tr>")
            strResults.Append("<td>")
            strResults.Append("<input type=text value=" & ds.Tables(0).Rows(i).Item(8) & "/>")
            strResults.Append(" <asp:TextBox  ></asp:TextBox>")
       
Avatar of Praveen Kumar
Praveen Kumar
Flag of India image

You have to provide name attribute for it:

Ex:
 <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
ASKER CERTIFIED SOLUTION
Avatar of SAMIR BHOGAYTA
SAMIR BHOGAYTA
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial