nerdexam
Microsoft

70-515 · Question #198

You are developing a Asp.net web application tht includes a panel control that has ID contentsection. You need to add a textBox control to the panel control.

The correct answer is C. this.ContentSection.control.add(this.LoadControl(typeof(TextBox),null)). See the full explanation below for the reasoning.

Question

You are developing a Asp.net web application tht includes a panel control that has ID contentsection. You need to add a textBox control to the panel control.

Options

  • Athis.RequireControlState(this.LoadControl(typeof(TextBox),null));
  • Bthis.ContentSection.control.add(this.FindControl(ContentSection.ID + "asp:TextBox"));
  • Cthis.ContentSection.control.add(this.LoadControl(typeof(TextBox),null));
  • Dthis.LoadComplete("asp:TextBox").IntiantiateIn(Content Section)

How the community answered

(38 responses)
  • A
    5% (2)
  • B
    8% (3)
  • C
    84% (32)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice