You create a custom server control named Task that contains the following code segment. You need to ensure that adding a Task control from the Toolbox creates markup in the following format.
- 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/" />");
正确答案:A,C
答案解析:有

微信扫一扫手机做题