nerdexam
Microsoft

70-515 · Question #12

70-515 Question #12: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #12. The question stem and answer options stay visible for context.

Question

You create a custom server control named Task that contains the following code segment. (Line numbers are included for reference only.) 01 namespace DevControls 02 { 03 public class Task : WebControl 04 { 05 [DefaultValue("")] 06 public string Title { ... } 07 08 protected override void RenderContents(HtmlTextWriter output) 09 { 10 output.Write(Title); 11 } 12 } 13 } You need to ensure that adding a Task control from the Toolbox creates markup in the following format. <Dev:Task ID="Task1" runat="server" Title="New Task" /> Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AAdd the following code segment to the project's AssemblyInfo.cs file.
  • BReplace line 05 with the following code segment.
  • CInsert the following code segment immediately before line 03.
  • DReplace line 10 with the following code segment.

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice
You create a custom server control named Task that contains the... | 70-515 Q#12 Answer | NerdExam