Here is my code for creating the textbox and label from code
int i = 0;
Label lbl = new Label();
lbl.Text = "Label - " + i.ToString();
lbl.ID = "Label - " + i.ToString();
TextBox txt = new TextBox();
txt.Text = "txt - " + i.ToString();
data.Controls.Add(lbl);
data.Controls.Add(txt);
Is it possible I add a new line after the data.Controls.Add(txt);
?
I tried to use Environment.NewLine
but its not working.
anyone have any idea how to do it?
Add this for new line