Which two actions should you perform?

You are developing an ASP.NET web page named WebPage.aspx. The page includes a user control named UserInfoControl.ascx.
You need to expose a control property named FirstName and read its value from the page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following code segment to UserInfoControl.ascx.cs:
protected string FirstName { get; set; }
B. Add the following code segment to UserInfoControl.ascx.cs:
public string FirstName { get; set; }
C. Add the following code segment to WebPage.aspx.cs:
var firstName = UserInfoControl1.Attributes["FirstName"];
D. Add the following code segment to WebPage.aspx.cs:
var firstName = UserInfoControl1.FirstName;

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.