Microsoft
70-515 · Question #10
70-515 Question #10: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #10. The question stem and answer options stay visible for context.
Question
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.)
Options
- AAdd the following line of code to the TestUserControl.ascx.cs code-behind file.
- BAdd the following line of code to the TestUserControl.ascx.cs code-behind file.
- CAdd the following code segment to the TestPage.aspx.cs code-behind file.
- DAdd the following code segment to the TestPage.aspx.cs code-behind file.
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.