CMS专题

单选题You create a Web Form that contains a text box named txtDate. You want the text box to allow users to enter any valid date. You need to use an ASP.NET validation control to ensure that only valid date values are submitted to the server. What should you

题目
单选题
You create a Web Form that contains a text box named txtDate. You want the text box to allow users to enter any valid date. You need to use an ASP.NET validation control to ensure that only valid date values are submitted to the server. What should you do? ()
A

Add a CompareValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its Operator property to DataTypeCheck.

B

Add a RangeValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set its Type property to Date. Set its MinimumValue property to 01/01/1900 and its MaximumValue to the current date.

C

Add a CustomValidator control to the Web Form. Set its ControlToValidate property to txtDate. Write a function in the partial class that verifies the values as dates and returns a Boolean variable. Set the CustomValidators ClientValidationFunction to the name of your function.

D

Add a RegularExpressionValidator control to the Web Form. Set its ControlToValidate property to txtDate. Set the ValidationExpression property to ensure that the users input follows the format of nn-nn-nnnn, where n represents a number from 0 through 9.

参考答案和解析
正确答案: B
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You create a master page named PageBase.master. The master page contains a Label control named lblTitle.You create a content page that references the master page.You need to change the Text property of the master page‘s lblTitle control from the content page.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第2题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form.You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

A. Include a data source identified as "WebPartConnection1" on the Web Form.

B. Include a Web Part identified as "customerPart" on the Web Form.

C. Include a Web Part identified as "ordersPart" on the Web Form.

D. Ensure that you declare an interface named "IOrdersPart".

E. Ensure that you declare an interface named "ICustomerPart".

F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method.


参考答案:B, C

第3题:

You use Microsoft .NET Framework 4 to create a Windows Forms client application.You write the following code segment.The application contains a form of type Form1 that contains a FormSettings object named frmSettings1.You need to maintain the user‘s form size preference each time the user executes the application.Which code segment should you use? ()

A.

B.

C.

D.


参考答案:D

第4题:

You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

  • A、Include a data source identified as "WebPartConnection1" on the Web Form.
  • B、Include a Web Part identified as "customerPart" on the Web Form.
  • C、Include a Web Part identified as "ordersPart" on the Web Form.
  • D、Ensure that you declare an interface named "IOrdersPart".
  • E、Ensure that you declare an interface named "ICustomerPart".
  • F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.

正确答案:B,C

第5题:

Your company Web site includes a page that customers use to send feedback about the company and its products. You use a SQL Server 2005 database to store the comments in the Comments column of a table named Feedback. You need to implement full-text searching so that you can run reports on the comments. Which two actions should you perform? ()

  • A、 Create a nonclustered index on the Comments column. 
  • B、 Execute the USE Master Transact-SQL statement. 
  • C、 Create a full-text catalog. 
  • D、 Create a full-text index on the Comments column.

正确答案:C,D

第6题:

Your network contains an Active Directory forest.The forest contains three domain trees.Each domain tree contains multiple domains.You have an Active Directory-integrated DNS zone.You install a Web server named Web1. All of the users in the company will use Web1.You need to ensure that the users can access Web1 by using the URL http://web1. You want to achieve this goal by using the minimum amount of administrative effort.What should you do?()

A. Configure a GlobalNames zone and add a Host (A) resource record for Web1.

B. Create an Alias (CNAME) resource record for Web1 in the forest root domain zone.

C. Create a reverse lookup zone and add an Alias (CNAME) resource record for Web1.

D. Create a Host Information (HINFO) resource record for Web1 in the forest root domain zone.


参考答案:A

第7题:

You are the administrator of SQL Server 2000 computer named FABSQL2K01. You create a Data Transformation Services package that contains definition for two transform. data tasks.

The tasks gets data from two text files named Customers and Sales. The DTS package is configured as shown in the exhibit.

You do not want the DTS package to add any data to the server unless both transform. data tasks complete successfully.

You select the use transactions check box of DTS package and the Join transaction of present check box of both transform. data tasks. You then select the fail package on step failure check box of both transform. data tasks.

You want to use the DTS package to import data from the text files to the server. You want to ensure that changes are committed if all imported data is successfully transformed.

What should you do?

A.Select the commit on successful completion check box of the DTS package.

B.Select the commit transaction on successful completion of this step check box of the customers transform. data task.

C.Select the commit transaction on successful completion of this step check box of the sales transform. data task.

D.Select the commit transaction on successful completion of this step check box of both transform. data tasks.


正确答案:A
解析:Explanation:ItispossibletosettheCommitonsuccessfulpackagecompletioncheckboxontheAdvancedTaboftheDTSPropertiesdialogBox.ThischeckboxspecifiesthatifeachindividualSQLstatementisatransactioncompletessuccessfully,thetransactionwillautomaticallybecommitted;andifthestatementhasanerror,thestatementisrolledback.Whenthischeckboxiscleared,theDTSconnectionsoperateinimplicittransactionmodeandthefirstSQLstatementbeginsatransactionthatremainsineffectuntilDTScommitsitorrollsitback.ThenextSQLstatementexecutedafteranycommitorrollbackstartsanewtransaction.IncorrectAnswers:B:TheCommittransactiononsuccessfulcompletionofthisstepcheckboxtreatseachstepinaDTSpackageasseparate.Thus,selectingtheCommittransactiononsuccessfulcompletionofthisstepcheckboxofthecustomerstransform.datataskwouldresultinthistaskbeingcommittedregardlessoftheprogressofthesalestransformationdatatask.C:TheCommittransactiononsuccessfulcompletionofthisstepcheckboxtreatseachstepinaDTSpackageasseparate.Thus,selectingCommittransactiononsuccessfulcompletionofthisstepcheckboxofthesalestransform.datataskwouldresultinthistaskbeingcommittedregardlessoftheprogressofthecustomer’stransformationdatatask.D:TheCommittransactiononsuccessfulcompletionofthisstepcheckboxtreatseachstepinaDTSpackageasseparate.Thus,selectthecommittransactiononsuccessfulcompletionofthisstepcheckboxofbothtransform.datataskswouldresultinthetwopartsbeingtreatedasseparateandeachpartbeingcommittedregardlessoftheprogressintheother.

第8题:

You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in casea users device does not display the full text of a news item.Which code segment should you use? ()

A.

B.

C.

D.


参考答案:D

第9题:

You need to design a configuration for the Microsoft Outlook Web Access servers. What should you do?()

  • A、Create a Network Load Balancing cluster that contains the Outlook Web Access servers
  • B、Create a Microsoft Cluster Server cluster that contains the Outlook Web Access servers
  • C、Create public DNS host (A) resource records for each Outlook Web Access server. Instruct each user to connect to the server that contains his or her mailbox
  • D、Install Microsoft Application Center 2000 on the Outlook Web Access servers. Create a Web cluster that contains all of the Outlook Web Access servers

正确答案:A

第10题:

You create a Web Form. You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page. What are two possible ways to achieve this goal? ()

  • A、Add custom controls that emit XHTML to the Web Form.
  • B、Add custom controls that emit WML to the Web Form.
  • C、Add mobile controls to the Web Form.
  • D、Add Web server controls to the Web Form.

正确答案:C,D

更多相关问题