试题详情
- 单项选择题 You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list. Class name: Task Namespace: DevControls Assembly: TestServerControl.dll Base class: System.Web.UI.WebControls.WebControl You copy TestServerControl.dll to the Web site‟s Bin folder. You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive. Which configuration should you add to the web.config file?()
A、<appSettings> <add key="Dev:Task" value="DevControls, DevControls.Task"/> </appSettings>
B、<compilation targetFramework="4.0" explicit="false"> <assemblies> <add assembly="TestServerControl" /> </assemblies> </compilation>
C、<pages> <controls> <add assembly="TestServerControl" namespace="DevControls" tagPrefix="Dev"/> </controls> </pages>
D、<pages> <tagMapping> <add tagType="System.Web.UI.WebControls.WebControl" mappedTagType="DevControls </tagMapping> </pages>
- C
关注下方微信公众号,在线模考后查看
热门试题
- 在.net应用程序中,哪些方法允许COM
- You create&ensp
- 为应用程序开发人员上班 Certkil
- Certkiller.COM有一个网络,
- You have
- 您需要确定计算机的效能问题是否由恶意程序
- Yourportablecomputer
- You work
- You are t
- You work
- Your company&e
- Yourdatarecoverystra
- Your company&e
- 你是一活动目录域的管理员。所有的服务器运
- You are the network
- 您向公司的 IT
- Certkiller.COM文件服务器位
- Your network&en
- You are d
- 下面哪一些ASP.NET控件在mobil