多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

Exhibit: You develop a Web control to manage credit card information. The Web control is shown in the exhibit. You register the control on the Web Form by using the following code segment. <%@ Register Assembly="CreditCardUserDetails" Namespace="CreditCardUserDetails" TagPrefix="cc1" %> You need to declare the control on the Web Form. Which code segment should you use?()

  • A、 <cc1:CreditCardDetails ID ="CreditCardDetails1" runat="server" Name="test"></cc1:CreditCardDetails><asp:TextBox ID="TxtName" runat="server" Text="<%#CreditCardDetails1.Name%>"></asp:TextBox>
  • B、<cc1:CreditCardDetails ID ="CreditCardDetails1" runat="server" Name="%#Container.Name%"></cc1:CreditCardDetails>
  • C、<cc1:CreditCardDetails I D="CreditCardDetails1" runat="server"> <Template> <asp:TextBox ID="TxtName" runat="server" Text="<%#Container.Name%>"></asp:TextBox> </Template></cc1:CreditCardDetails>
  • D、<cc1:CreditCardDetails I D="CreditCardDetails1" runat="server"> <Template> <asp:TextBox ID="TxtName" runat="server" Text="<%#Container.Template%>"></asp:TextBox> </Template></cc1:CreditCardDetails>
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题