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 { cublic 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 <%@ Assembly Name=" MyControl " Src=" MyControl " %> 

B <%@ Register namespace=" CommonControls " %> 

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

D <%@ Import Namespace=" CommonControls " %> 

+ Answer
+ Report
Total Preview: 1313

Copyright © 2024. Powered by Intellect Software Ltd