You need to create the form so that when the user clicks the label, the corresponding text box is selected for
You are dynamically adding controls to an ASP.NET page in the Page_Load event handler. The page
will have text boxes that correspond to the columns in a database table. Each text box will be
preceded by a label that displays the name of the corresponding column. You need to create the
form so that when the user clicks the label, the corresponding text box is selected for input. What
should you do?
Which two actions should you perform?
You create a custom server control named Task that contains the following code segment. (Line
numbers are included for reference only.)
You need to ensure that adding a Task control from the Toolbox creates markup in the following
format.
<Dev:Task ID=”Task1″ runat=”server” Title=”New Task” />
Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
You need to create a channel factory that can send messages to the endpoint listening at net.pipe://localhost/
A Windows Communication Foundation (WCF) client configuration file contains the following
XML segment in the system.serviceModel element. <client> <endpoint address=”
net.tcp://server/ContosoService ” binding=” netTcpBinding ” contract=” Contoso.
IContosoService ” name=” netTcp ” / > <endpoint address=”
net.pipe://localhost/ContosoService ” binding=” netNamedPipeBinding ” contract=” Contoso.
IContosoService ” name=” netPipe ” /> </client> You need to create a channel factory that
can send messages to the endpoint listening at net.pipe://localhost/ContosoService. Which
code segment should you use
Which two actions should you perform?
You are implementing an ASP.NET application that makes extensive use of JavaScript libraries. Not
all pages use all scripts, and some scripts depend on other scripts. When these libraries load
sequentially, some of your pages load too slowly. You need to use the ASP.NET Ajax Library Script
Loader to load these scripts in parallel. Which two actions should you perform? (Each correct answer
presents part of the solution. Choose two.)
Which code segment should you use?
You are consuming a Windows Communication Foundation (WCF) service. The service
interface is defined as follows. [DataContract(Namespace = “”)] public class Item { … }
[ServiceContract(Namespace = “”)] public interface ICatalog { [OperationContract]
[WebInvoke(Method = “POST”, UriTemplate = “/Item”)] Item UpdateItem(Item item); } The
client application receives a WebResponse named response with the response from the
service. You need to deserialize this response into a strongly typed object representing the
return value of the method. Which code segment should you use?
Which code segment should you use?
A Web page includes the HTML shown in the following code segment.
<span id=”ref”>
<a name=Reference>Check out</a>
the FAQ on
<a href=”http://www.contoso.com”>
Contoso</a>’s web site for more information:
<a href=”http://www.contoso.com/faq”> FAQ </a>.
</span>
<a href=”http://www.contoso.com/ home “> Home </a>
You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks
in the ref span. Which code segment should you use?
You need to implement this client-side event
You are building an ASP.NET control. The control displays data by using a table element with a class
attribute value of Results. The control should expose a client-side event named onrowselected that
fires when a check box in a table row is selected. You need to implement this client-side event. What
should you do?
You need to enable logging to verify that the messages from the client are signed and encrypted
A Windows Communication Foundation (WCF) service only accepts messages that are
signed and encrypted. A client application is not receiving expected responses from the
service. You need to enable logging to verify that the messages from the client are signed
and encrypted. You also need to see what each message looks like before the message
body is deserialized intoa .NET object. What should you do?
Which code segment should you use?
You create a Web page that contains the span shown in the following line of code.
<span id=”span1″>Text</span>
You need to replace the contents of the span with HTML that you download from a URL specified by
a global variable named localURL. Which code segment should you use?
you need to configure the service to log messages received from the client
A Windows Communication Foundation (WCF) application exposes a service as a SOAP
endpoint for consumption by cross-platform clients. During integration testing, you find that
one of the clients is not generating the correct messages to the WCF application. In order to
debug the issue and fix the communication, you need to configure the service to log
messages received from the client. What should you do?