Last post Mar 25, 2013 04:54 AM by Amy Peng - MSFT
Mar 17, 2013 09:41 PM|jiunhaw924|LINK
i need a complete tutorial about this
here is the scenario
i collect the user input for example, user input 10
then the system will generate 10 text box in specific position and each text box have its own ID
need is very urgent.... looking for solution
please help me :(
Mar 17, 2013 10:04 PM|stockcer|LINK
Can you use jquery or other technology?
Mar 17, 2013 10:08 PM|jiunhaw924|LINK
just need the simplest solution for this
after capture the input then generate the text box...
i have done this in JAVA before...
but i cant apply the knowledge from JAVA to here....
i had done some research on google...
but i dont understand and cant implement them into my system...
Mar 25, 2013 04:54 AM|Amy Peng - MSFT|LINK
I just create a simple example for you, please try to refer to:
In the aspx:
<form id="form1" runat="server">
<asp:TextBox ID="Txtbox" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
<asp:Panel ID="Panel1" runat="server"></asp:Panel>
In the .cs:
public partial class Default2 : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
protected void Button1_Click(object sender, EventArgs e)
TextBox txt = new TextBox[n];
for (int i = 0; i < n; i++)
txt[i] = new TextBox();
txt[i].ID = "this is the" + i + "textbox";
Hope it can help you.