多项选择题

You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.  
Which two actions should you perform?()

A.Add the WebGet attribute to the service contract.
B.Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.
C.Add the WebInvoke attribute to the service contract.
D.Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题

You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user.
What should you do?()

A.Pass the object data in a hidden field.
B.Store the object instance in a session variable.
C.Use a cookie that contains the object data.
D.Encode the object data and pass it in a query string parameter.

3.单项选择题You have migrated a web application from .net 3.5 to 4.0. the application hat to render same as in .net 3.5.()

A.<assembles> someoptions </assembles> 
B.<pages controlRenderingCompatibilityVersion="3.5"/>
C.<compilation targetframework = "3.5" />
D.<xhtmlConformance mode="Legacy" />

4.单项选择题A library called contosobuisness.dll has been created and u need to accept it in a page.. all options had the <%assembly tag but the att differed.()

A.<%assembly TargetName="contosobuisness" %>
B.<%assembly ID="contosobuisness" %> 
C.<%@ Assembly Name="contosobuisness" %>
D.<%assembly virtualpath="contosobuisness" %>

7.单项选择题You are developing a Asp.net web application tht includes a panel control that has ID contentsection.You need to add a textBox control to the panel control.()

A.this.RequireControlState(this.LoadControl(typeof(TextBox),null));
B.this.ContentSection.control.add(this.FindControl(ContentSection.ID + "asp:TextBox"));
C.this.ContentSection.control.add(this.LoadControl(typeof(TextBox),null));
D.this.LoadComplete("asp:TextBox").IntiantiateIn(Content Section)

9.单项选择题

The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. 
What should you do? ()

A.Read the HttpRequest.Files property and call the HttpPostedFile.SaveAs method for each file.
B.Read the HttpRequest.inputStream property and call the System.Io.File.WriteLines method for each file.
C.Read the HttpRequest.inputStream property and call the HttpResponse.WriteLine method for each file.
D.Read the HttpRequest.Files property and call the System.Io.File.WriteLines method for each file.

10.单项选择题You need to ensure that when the button is clicked, both update panels update the tim without generating a postback.  What should you do?()

A.Add the following marktip to UpdatePanel1.  <Triggers>  <asp:PostBackTrigger ControlID="btnSave" />  </Triggers>  
B.Set the UpdateMode property for the UpdatePanel2 to "Always"
C.Add the following markup to UpdatePanel2  <Triggers>  <asp:AsyncPostBackTrigger ControlID="btnSave"  EventName="Click" />  </Triggers>  
D.Set the UpdateMode property for UpdatePanel2 to "Conditional"

最新试题

You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail address required" when the user does not enter an address and "Invalid e-mailaddress" when the user enters an address that is not formatted properly. You need to ensure that the appropriate error message is displayed when the text box does not contain a valid e-mail address.  Which two code segments should you add?()

题型:多项选择题

You have a login.ascx control and to display it in a view which method u would use()

题型:单项选择题

Which class provides paging functionality for data-bound controls that implement the IPageableItemContainer interface?()

题型:单项选择题

Which event of the GridView class occurs when the Edit button of a row is clicked, but before the GridView control enters edit mode?()

题型:单项选择题

You are developing an ASP.NET MVC 2 Web Application. You need to implement an asynchronous controller named AccountingController, and you must ensure that the export action required proper authorization.Which code segment should you use?()

题型:单项选择题

The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. What should you do? ()

题型:单项选择题

Which tool is used to simplify the migration, management and deployment of IIS Web servers, Web applications and Web sites?()

题型:单项选择题

Which control allows you to bind to data items that are returned from a data source and display them?()

题型:单项选择题

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You create an ASP.NET Web application using .NET Framework 4.0. The ASP.NET application is used to track employee performance. It uses Microsoft Windows authentication. Employees are members of a group named Employees.  Managers are members of a group named Managers.  The root folder of the application is named Details. The Details folder displays information about employees„ performance.  The Details folder has a subfolder named MoreDetails. You need to ensure that employees and managers can access pages stored in the Details folder. However, only managers can access pages stored in the MoreDetails folder.   You make the following entries in the Web.config file in the Details folder.You make the following entries in the Web.config file in the MoreDetails folder.When managers try to access pages stored in the MoreDetails folder, they receive the following error message:"An error occurred during the processing of a configuration file required to service this request." You must ensure that managers are able to access pages stored in the MoreDetails folder. What will you do to accomplish this?()

题型:单项选择题

You work as an ASP.NET Web Application Developer for SomeCompany.  The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source.  You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()

题型:单项选择题