Q
Quentin Huo
Hi,
I am trying to dynamically create <asp:TextBox> controls in a page, like:
Label lbl = new Label();
TextBox1 = new TextBox();
TextBox1.ID = "TextBox1";
......
TextBox2 = new TextBox();
TextBox2.ID = "TextBox2";
......
lbl.Controls.Add(TextBox1);
lbl.Controls.Add(TextBox2);
I want to put the "TextBox1" and "TextBox2" in the different line, just like
there is a "<br>" between them. But what is the webControl for "<br>"? Maybe
there is another way to do this?
Thanks
Q.
I am trying to dynamically create <asp:TextBox> controls in a page, like:
Label lbl = new Label();
TextBox1 = new TextBox();
TextBox1.ID = "TextBox1";
......
TextBox2 = new TextBox();
TextBox2.ID = "TextBox2";
......
lbl.Controls.Add(TextBox1);
lbl.Controls.Add(TextBox2);
I want to put the "TextBox1" and "TextBox2" in the different line, just like
there is a "<br>" between them. But what is the webControl for "<br>"? Maybe
there is another way to do this?
Thanks
Q.