Question from the ASP .NET test

How to add a validator to a user control in Dot-net

Hard

You have developed a page named TestPage.aspx and a user control named TestUserControl.ascx. The page includes the user control as follows:

<uc:TestUserControl ID="testControl" runat="server"/>

You need to add a read-only property named "CityName" that should return the value "New-York". You also need to read this value in the web page's code.

What steps should be taken to achieve this?

Author: Damien CavaillèsStatus: Published(Update)Question passed 11 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!