Which two actions should you perform?

You create a custom server control named Task that contains the following code segment. (Line numbers are included for reference only.)

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.)
A. Add the following code segment to the project’s AssemblyInfo.cs file.
[assembly: TagPrefix("DevControls", "Dev")]
B. Replace line 05 with the following code segment.
[DefaultValue("New Task")]
C. Insert the following code segment immediately before line 03.
[ToolboxData("<{0}:Task runat="server" Title="New Task" />")]
D. Replace line 10 with the following code segment.
output.Write("<Dev:Task runat="server" Title="New Task" />");

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.