0

Hello
I try to do a Dynamic TextBoxes - but it doesnt work :( .. here is my code:

if (ds.Tables[0].Rows.Count != 0)
                    {
                        foreach (DataRow row in ds.Tables[0].Rows)
                        { 
                        %>

                            <div class="LineA">
                                <input type="text" id="Item_<%= var %>" name="Item_<%= var %>" value="<%= var %>" />
                                <input type="text" id="Link_<%= var %>" name="Link_<%= var %>" value="<%= var %>" />
                                <input type="submit" value="[Edit]" onclick="window.location.href = "AdminPanel.aspx?EditLink=<%= var";" />
                                <a href="AdminPanel.aspx?DeleteLink=<%= var %>">[Delete]</a>
                            </div>

                        <%
                        }
                    }

thanks for your help... :)

Edited by moshe12007

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by IbrahemShehata
0

i'm not sure i got the question right, but you can create an ASP Panel and add textbox to it from the codebehind.
hope i helped

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.