Question:

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.

You write the following code segment.

namespace CommonControls

{

public class MyControl : WebControl

{

//...

}

}


You include a MyControl custom server control named MyControl1 on the Web page by using the following code fragment. (Line numbers are included for reference only.) 02 <form id=" MyForm " runat ="server">

03 < custom:MyControl ID="MyControl1" runat ="server" /> 04 </form>

You need to add a directive that enables you to use custom control on the Web page.

Which code fragment should you add at line 01?

 

A p { margin-bottom: 0.08in; }

<%@ Import Namespace=" CommonControls " %>

 

B p { margin-bottom: 0.08in; }

<%@ Assembly Name=" MyControl " Src =" MyControl " %>

 

C p { margin-bottom: 0.08in; }

<%@ Register namespace=" CommonControls " tagprefix ="custom" %>

 

D p { margin-bottom: 0.08in; }

<%@ Register namespace=" CommonControls " %>

 

+ Answer
+ Report
Total Preview: 1030

Copyright © 2024. Powered by Intellect Software Ltd