Which two actions should you perform?
You are creating an ASP.NET Web application that uses the SqlMembershipProvider.
You plan to test locally and deploy to multiple production servers.
You need to ensure that each deployed application accesses the same production database in Microsoft SQL Server.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which configuration should you use?
You are creating an ASP.NET Web site.
The site contains pages that are available to anonymous users.
The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers.
You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group.
Which configuration should you use?
Which code segment should you use?
A Web service returns a list of system users in the following format.
<xml version=”1.0″ >
<users>
<user id=”first”>
<name>Name of first user</name>
<email>first@contoso.com</email>
</user>
<user id=”second”>
<name>Name of second user</name>
<email>first@contoso.com</email>
</user>
</users>
You need to populate a drop-down menu with the IDs and names of the users from the Web service, in the order provided by the service.
Which code segment should you use?
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 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?
What should you do?
You create an ASP.NET page.
The page uses the jQuery $.ajax function to make calls back to the server in several places.
You add the following div element to the page.
<div id=”errorInfo”>
</div>
You need to implement a single error handler that will add error information from all page $.ajax calls to the div named errorInfo.
What should you do?
What should you do?
You are implementing an ASP.NET AJAX page that contains two div elements.
You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh.
What should you do?
What should you do?
You are implementing an ASP.NET AJAX page.
You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template.
You have the following requirements.
* Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
* Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.
You need to configure the panels to meet the requirements.
What should you do?
Which two actions should you perform?
You are implementing an ASP.NET AJAX page.
You add the following control to the page.
<asp:UpdatePanel ID=”pnl1″ runat=”server” UpdateMode=”Conditional”>
<ContentTemplate> … </ContentTemplate>
</asp:UpdatePanel>
You need update the contents of the UpdatePanel without causing a full reload of the page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which declaration should you use?
You create a Web page that contains the following code. (Line numbers are included for reference only.)
01 <script>
02 function changeColor(c) {
03 message.style.color = c;
04 }
05 </script>
07 <p id=”message”>Welcome!</p>
08 <ul id=”color”>
09 <li>Black</li>
10 <li>Red</li>
11 </ul>
You need to ensure that when the user clicks an item in the list, the text color of the “Welcome!” message will change.
Which declaration should you use?
What should you do?
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?