News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;

You create an ASP.NET page named Customer.aspx. Customer.aspx contains a Web user control that displays a drop-down list box of Cities. The Web user control is named CityList, and it is defined in a file named CityList.ascx. The name of the DropDownList control in City.ascx is CuCity. You try to add code to the Page.Load event handler for Customer.aspx, but you discover that you cannot access CuCity from code in Customer.aspx. You want to ensure that code within Customer.aspx can access properties of CuCity.

What should you do?

  1. In the code-behind file for CityList.ascx, add the following line of code:Protected CuCity As DropDownList

  2. In the code-behind file for Customer.aspx, add the following line of code:Public CuCity As DropDownList

  3. In the code-behind file for Customer.aspx, add the following line of code:Protected CuCity As DropDownList

  4. In the code-behind file for CityList.ascx, add the following line of code:Public CuCity As DropDownList

Answer: Answer is d
Further Reading:

We need to declare CuCity as public to access it.

comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;