nerdexam
Microsoft

70-515 · Question #87

You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection. You need to add a text box control to the Panel control. Which code segment should you use?

The correct answer is D. this.ContentSection.Controls.Add(. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection. You need to add a text box control to the Panel control. Which code segment should you use?

Options

  • Athis.ContentSection.Controls.Add(
  • Bthis.LoadTemplate("asp:TextBox")
  • Cthis.RequiresControlState(
  • Dthis.ContentSection.Controls.Add(

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    12% (3)
  • D
    76% (19)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice