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?
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
5
Add the following event handler:2
How to get the first element of an array in C#5
How to get the first element of an array in C#1
Use web forms routing and set the Render outer table property to false for all Form View controls.1
How to get the client id in .net2
Create a MasterPage called Layout.master with two ContentPlaceholder controls to represent the two variable areas of the page.,Create the web pages using the following directive below:2
What interface should I implement to make my class serializable in .NET?