which page directive you use?
You are perfoming security testing on an existing asp.net web page. You notice that you are able to
issue unauthorised postback requests to the page. You need to prevent unauthorised post back
requests. which page directive you use?
You need to ensure that the page can access these types.
You’re developing an ASP web page. the pages requires access to types that are defined in an
assembly named Contoso.businessobjects.dll. You need to ensure that the page can access these
types.
You need to ensure that applications can consume the service without code changes in the client
You are developing a Windows Communication Foundation (WCF) service to replace an
existing A5MX Web service. The WCF service contains the following code segment. (Line
numbers are included for reference only.) The existing Web service returns the EmployeeID
as an attribute of the EmployeeInfo element in the response XML. You need to ensure that
applications can consume the service without code changes in the client.
You need to add a client-side function to write the response to the specified HTML element.Which function shou
You are developing an ASP.NET web page. The page includes functionality to make a web request
and to display the responde in a specified HTML element. You need to add a client-side function to
write the response to the specified HTML element.Which function should you add?
Which code segment should you use?
You are developing a Windows Communication Foundation (WCF) client application. You
instantiate a client class that inherits from ClientBase. The client instance must always be
shut down in such a way that it can free up any resources it is referencing. You need to
ensure that all exceptions are caught and the instance is always properly shut down. Which
code segment should you use?
You need to apply the General theme to all pages, and you must ensure that the page-specific customizations ar
You are developing an ASP.NET web application. Your designer creates a theme named General for
general use in the application. The designer also makes page-specific changes to the default
properties of certain controls. You need to apply the General theme to all pages, and you must
ensure that the page-specific customizations are preserved. What should you do?
You need to cache the data that the action method returns
You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method
that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the
data that the action method returns. What should you do?
Which element should you add to the system.serviceModel section in the application configuration file?
You are moving a Windows Communication Foundation (WCF) service into production. You
need to be able to monitor the health of the service. You only want to enable all
performance counter instances exposed by the ServiceModelService 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application
configuration file?
Which code segment should you add at line 03?
You are developing an ASP.NET Web application. The application includes a Icomparer<string>
implementation named CaseInsensitiveComparer that compares strings without case sensitivity You
add the following method.(Line numbers are included for reference only.)
01 public IEnumerable<string>SortWords(string[] words)
02 {
03
04 }
You need to sort the array by word length and then by alphabetic order, ignoring case. Which code
segment should you add at line 03?
Which two actions should you perform?
You are implementing an ASP.Net web page that includes a Treeview control. You need to ensure
that the TreeView control nodes are populated only when they are first expanded. Which two
actions should you perform? (Each correct answer presents part of the solution. Choose two.)