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.

;

<uc:TestUserControl ID="testControl" runat="server"/>
On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New
York". You also must add code to TestPage.aspx to read this value. Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

  1. Add the following line of code to the TestUserControl.ascx.cs code-behind file.

    public string CityName
    {
    get { return "New York"; }
    }
    
  2. Add the following line of code to the TestUserControl.ascx.cs code-behind file.

    protected readonly string CityName = "New York";
    
  3. Add the following code segment to the TestPage.aspx.cs code-behind file.

    protected void Page_Load(object sender, EventArgs e)
    {
    string s = testControl.CityName;
    }
    
  4. Add the following code segment to the TestPage.aspx.cs code-behind file.

    protected void Page_Load(object sender, EventArgs e)
    {
    string s = testControl.Attributes["CityName"];
    }
    
Answer: Answer is a
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.

;