Which 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 actions should you perform? (Each correct answer presents part of the solution. Choose two.)

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 actions should you perform? (Each correct answer presents part of the solution. Choose two.)

A.
Add the following code segment to UserlnfoControl.ascx.cs.
protected string FirstName { get; set; }

B.
Add the following code segment to UserlnfoControl.ascx.cs.
public string FirstName { get; set; }

C.
Add the following code segment to WebPage.aspx.cs.
var firstName = UserlnfoControl1.Attributes[“FirstName”];

D.
Add the following code segment to WebPage.aspx.cs.
var firstName = UserlnfoControl1.FirstName;



Leave a Reply 0

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