You create a Web Form that contains a button named btnCancel

题目
单选题
You create a Web Form that contains a button named btnCancel that enables users to exit the page. When users click this button, validation must not occur. During testing you learn that clicking the Cancel button does not enable users to exit the page. You need to ensure that users can always exit the page. What should you do?()
A

Set the Enabled property of the validation controls on the Web Form to False.

B

Set the CausesValidation property of the btnCancel button to False.

C

Set the CausesValidation property of the btnCancel button to True.

D

Set the Visible property of the validation controls on the Web Form to False.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

第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 are the network administrator for Litware, Inc. All network servers run Windows Server 2003.Your IIS server is named Server6. Its configuration is shown in the exhibit. (Click the Exhibit button.)Users access the internal network by connecting to http://server6.litwareinc.intra.A folder named Marketing_Data stores the Web interface for the company‘s client management tool. Currently,users in the marketing department access this tool by connecting to http://server6.litwareinc.intra/Marketing_Web.You share Marketing_Data on a server named Server2.You need to modify Server6 to ensure that marketing users can access Marketing_Data through the internal network.What should you do? ()

A. Create a new virtual directory named Marketing_Web under the default Web site. Specify \\server2\Marketing_Data as the Web site content directory.

B. Create a new Web site named Marketing_Data. Specify \\server2\Marketing_Data as the Web site home directory.

C. Create a new Web site named Marketing_Data. Specify Marketing_Data as the host header name of the Web site.

D. Redirect the default Web site home directory to http://server2/Marketing_Data. Specify Marketing_Data as the host header name of the default Web site.


参考答案:A

第4题:

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

第5题:

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a Button control for the application. You need to ensure that the application meets the following requirements: When the mouse pointer is over the Button control, the background color of the button is set to red and the Button control appears bigger. When the mouse pointer is not over the Button control, the button returns to its original state. What should you do?()

  • A、 Create a template. Declare a VisualState element in the template.
  • B、 Create a StoryBoard animation. Add an EventTrigger class to the Button control that begins the StoryBoard animation.
  • C、 Create a ScaleTransform class. Bind the ScaleX and ScaleY properties of the Button control to the Background property by using a custom value converter.
  • D、 Add a method named ChangeAppearance in the code-behind file. Subscribe the ChangeAppearance  method to the MouseEnter event of the Button control.

正确答案:A

第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 have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2).You create a new virtual directory named App1. App1 contains a Web application.Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application.You need to ensure that users can access the Web application when they connect to http://app1.What should you do? ()

A. Move the content of the Web application to C:\App1. Change the home directory for App1.

B. Move the content of the Web application to C:\App1. Change the application pool for App1.

C. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.

D. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.


参考答案:D

第8题:

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

第9题:

You have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2). You create a new virtual directory named App1. App1 contains a Web application. Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application. You need to ensure that users can access the Web application when they connect to http://app1. What should you do? ()

  • A、Move the content of the Web application to C:/App1. Change the home directory for App1.
  • B、Move the content of the Web application to C:/App1. Change the application pool for App1.
  • C、Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.
  • D、Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.

正确答案:D

第10题:

You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? ()

  • A、Add the OnClick event handler for the Login button to the code used in the custom user control.
  • B、Add the OnClick event handler for the Login button to the code used in the Web Form where the control is added.
  • C、In the Page_Load method of the Web Form, add a code segment to set the visibility of the TextBox and Button controls where the control is added.
  • D、In the Page_Load method of the custom user control, add a code segment to set the visibility of the TextBox and Button controls.

正确答案:A,D

更多相关问题