ASP.Net - Online Exam Test Papers | ASP.Net - MCQs[multiple choice questions and answers ] | ASP.Net - Mock Test Papers | ASP.Net - Practice Papers | ASP.Net - Sample Test Papers |

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

1.extBox obj = new TextBox(); obj.ID = "txtUserName"; form1.Controls.Add(obj);

2. form1.Controls.Add(TextBox);

3. this.FindControl.add(TextBox);

4.None of the above.

Posted Date:-2022-02-01 11:30:25


More MCQS Questions and answers

Search