可学答题网 > 问答 > MCPD(70-562)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You work as a Web


You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication.  You decide to make use of Microsoft ASP.NET 3.5 in order to create the application. The followingmarkup is present on the page:  <asp:TextBox ID="_statusTextBox" runat="server"/>  <asp:Button ID="_button" runat="server" Text="Filter"/>  <asp:SqlDataSource ID="_sqlDataSource" runat="server"   ConnectionString="<%$ ConnectionStrings:Certkiller %>"  SelectCommand="GetUsers" SelectCommandType="StoredProcedure"  FilterExpression="Active=1 AND Name LIKE ’{0}%’">  <FilterParameters>  <asp:ControlParameter ControlID="_statusTextBox"/>  </FilterParameters>  </asp:SqlDataSource>  <asp:GridView ID="_CKGridView" runat="server" DataSourceID="_sqlDataSource"/>  The page is used to retrieve the Users from a company database. However, only the active usersare displayed. The TextBox control allows you to also filter users by status. You do not specify astatus when you click the Filter button. You notice that the page does not filter by active users andshows all the users that are retrieved from the database. You need to make the necessary settingsto ensure that only the active users are being displayed on the page when a status is notspecified.  What should you do?()

  • AYou should ensure that a default value for the Status property of the ControlParameter controlis set.
  • BYou should ensure that the PropertyName property of the ControlParameter control is set toText.
  • CYou should ensure that the ControlParameter control’s ConvertEmptyStringToNull property isset to false.
  • DYou should ensure that the {0} placeholder in the FilterExpression property is replaced with the(?) symbol.
参考答案
参考解析:
分类:MCPD(70-562)题库
相关推荐

1、You work as a Web

You&ensp;work&ensp;as&ensp;a&ensp;Web&ensp;Developer&ensp;at&ensp;Certkiller.com.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;process&ensp;of&ensp;creating&ensp;a&ensp;W...

2、You work as a Web

You&ensp;work&ensp;as&ensp;a&ensp;Web&ensp;Developer&ensp;at&ensp;Certkiller.com.&ensp;Certkiller.com&ensp;makes&ensp;use&ensp;of&ensp;Microsoft&ensp;ASP.NET3.5.&ens...

3、You work as a Web

You&ensp;work&ensp;as&ensp;a&ensp;Web&ensp;Developer&ensp;at&ensp;Certkiller.com.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;process&ensp;of&ensp;creating&ensp;a&ensp;m...

4、You work as a Web

You&ensp;work&ensp;as&ensp;a&ensp;Web&ensp;Developer&ensp;at&ensp;Certkiller.com.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;process&ensp;of&ensp;creating&ensp;a&ensp;W...

5、You work as a Web

You&ensp;work&ensp;as&ensp;a&ensp;Web&ensp;Developer&ensp;at&ensp;Certkiller.com.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;process&ensp;of&ensp;creating&ensp;a&ensp;W...

6、You work as a Web

You&ensp;work&ensp;as&ensp;a&ensp;Web&ensp;Developer&ensp;at&ensp;Certkiller.com.&ensp;You&ensp;create&ensp;a&ensp;Web&ensp;application&ensp;using&ensp;MicrosoftASP....