You are creating a Web Form. The Web Form allows users to re

题目
单选题
You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows. dtProducts. Rows(0)("ProductName") = "Soap"dtProducts. Rows(1)("ProductName") = "Book"dtProducts. Rows(2)("ProductName") = "Computer"dtProducts. Rows(3)("ProductName") = "Spoon"dtProducts. AcceptChanges( ) The user utilizes a Web Form to delete the first product. You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown. To which value should you set the DataTabless DefaultView.RowStateFilter?()
A

Data View Row State.Modified Original

B

Data View Row State.Modified Current

C

Data View Row State.Current Rows

D

Data View Row State.Added

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

第1题:

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

第2题:

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

第3题:

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

第4题:

单选题
You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file. Which code segment should you add to the Page_Load event?()
A

 Wizard1.RequireEmail = True

B

 Wizard1.Email = user@address.com

C

 Wizard1.MailDefinition.From = registration@mysite.com

D

 SmtpMail.SmtpServer = mail.contoso.com


正确答案: D
解析: 暂无解析

第5题:

单选题
You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows. dtProducts. Rows(0)("ProductName") = "Soap"dtProducts. Rows(1)("ProductName") = "Book"dtProducts. Rows(2)("ProductName") = "Computer"dtProducts. Rows(3)("ProductName") = "Spoon"dtProducts. AcceptChanges( ) The user utilizes a Web Form to delete the first product. You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown. To which value should you set the DataTabless DefaultView.RowStateFilter?()
A

Data View Row State.Modified Original

B

Data View Row State.Modified Current

C

Data View Row State.Current Rows

D

Data View Row State.Added


正确答案: A
解析: 暂无解析

第6题:

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

第7题:

You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform?()

  • A、Create a valid definition in the Web.config file.
  • B、Set the passwordFormat attribute of the configured membership provider to Encrypted.
  • C、Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to False.
  • D、Ensure that the enablePasswordRetrieval attribute of the configured membership provider is set to True.

正确答案:A,C

第8题:

You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment. You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file. Which code segment should you add to the Page_Load event? ()

  • A、Wizard1.RequireEmail = True
  • B、Wizard1.Email = "user@address.com"
  • C、Wizard1.MailDefinition.From = "registration@mysite.com"
  • D、SmtpMail.SmtpServer = "mail.contoso.com"

正确答案:C

第9题:

多选题
You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform?()
A

Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.

B

Add a SiteMapPath control to the Web Form and bind the TreeView control to it.

C

Embed the site map XML within the SiteMap node of a Web.sitemap file.

D

Embed the site map XML within the AppSettings node of a Web.config file.

E

Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.

F

Set the SkipLinkText property of the SiteMapPath control to Sales.


正确答案: A,E
解析: 暂无解析

第10题:

单选题
You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form. Which code segment should you use?()
A

protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}

B

protected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}

C

protected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString()); e=null;}

D

protected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}


正确答案: D
解析: 暂无解析

更多相关问题