Generating fields by ASP.NET code

0

I'm doing a web application with ASP.NET and C #.

In this application I can register multiple items of the same type, so it has a text field and a side button to create new text boxes. I have already worked with this in the desktop app, but I do not know how to generate the fields in the .aspx file.

How can I do this? Should I make this command in .aspx or .cs ? How can I pass the data later?

    
asked by anonymous 19.03.2014 / 17:52

1 answer

1
TextBox txt = new TextBox();
txt.ID = "textBox1";
txt.Text = "helloo";
form1.Controls.Add(txt);
    
19.03.2014 / 18:51