1.

How will you add a TextBox control at runtime on the form? Choose the correct one.

A. TextBox obj = new TextBox(); obj.ID = "txtUserName"; form1.Controls.Add(obj);
B. form1.Controls.Add(TextBox);
C. this.FindControl.add(TextBox);
D. None of the above.
Answer» B. form1.Controls.Add(TextBox);


Discussion

No Comment Found