Thanks a lot friend but a problem does occur is i have added a br tag as well but it is not shown in output plz check:
label and Text Boxes Get added But Break is not There after Addition of these two
Code:
TextBox [] textBoxArr;
Label []lbl=new Label[5];
Label lblbr=new Label();
for(int i = 0; i < textBoxArr.Length - 1; i++)
{ textBoxArr(x) = New TextBox();
textBoxArr(x).ID = "myTextBox" + x.ToString();
lbl[i]=new Label();
lbl.Id="myLabel" + i.ToString();
lbl[i].Text="myLabel";
lblbr.Text="<br/>";
textBoxArr[i].Visible = True;
lbl[i].Visible = True;
lblbr.Visible=True;
//Initializing the TextBox so that it is not rendered in the browser
Pnl_TextBoxes.Controls.Add(textBoxArr[i]); //Adding the TextBox to the Panel that holds the text
Pnl_TextBoxes.Controls.Add(lbl[i]);
Pnl_TextBoxes.Controls.Add(lblbr);
}
label and Text Boxes Get added But Break is not There after Addition of these two
Comment