PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which two actions should you perform?

You create a Web page named TestPage.aspx and a user control named TestUserControl. ascx.
TestPage.aspx uses TestUserControl.ascx as shown in the following line of code.
<uc:TestUserControl ID=”testControl” runat=”server”/>
On TestUserControl.ascx, you need to add a read-only member named CityName to return the value
“New York”. You also must add code to TestPage.aspx to read this value. Which two actions should
you perform? (Each correct answer presents part of the solution. Choose two.)

You need to configure the panels to meet the requirements

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?