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.)
A. Add the following line of code to the TestUserControl.ascx.cs code-behind file.

B. Add the following line of code to the TestUserControl.ascx.cs code-behind file.
protected readonly string CityName = "New York";
C. Add the following code segment to the TestPage.aspx.cs code-behind file.

D. Add the following code segment to the TestPage.aspx.cs code-behind file.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.