MCQs > IT & Programming > ASP.NET > You create an ASP.NET page named Customecaspx. Customeizaspx contains a Web user control that displays a drop—down list box of Cities. The Web user control is named CityList, and it is def‌ined in a f‌ile named CityList.ascx. The name of the DropDownList control in Cityascx is CuCity. You try to add code to the Page.Load event handler for Customenaspx. but you discover that you cannot access CuCity from code in Customeraspx. You want to ensure that code within Customeraspx can access properties of CuCity. What should you do?

ASP.NET MCQs

You create an ASP.NET page named Customecaspx. Customeizaspx contains a Web user control that displays a drop—down list box of Cities. The Web user control is named CityList, and it is def‌ined in a f‌ile named CityList.ascx. The name of the DropDownList control in Cityascx is CuCity. You try to add code to the Page.Load event handler for Customenaspx. but you discover that you cannot access CuCity from code in Customeraspx. You want to ensure that code within Customeraspx can access properties of CuCity.

What should you do?

Answer

Correct Answer:

 in the code-behind f‌ile for CityListascx. add the following line of code:

Public CuCity As DropDownList


Explanation:

Note: This Question is unanswered, help us to find answer for this one

ASP.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More ASP.NET MCQ Questions

search

ASP.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it