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"/>
You add the following code to the code-behind file of TestPage.aspx.
private void TestMethod()
{
...
}
You define the following delegate.
public delegate void MyEventHandler();
You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the
page's TestMethod method to the event.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

  1. Add the following line of code to TestUserControl.ascx.cs.
    public event MyEventHandler MyEvent;

  2. Add the following line of code to TestUserControl.ascx.cs.
    public MyEventHandler MyEvent;

  3. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
    <uc:TestUserControl ID="testControl" runat="server"
    OnMyEvent="TestMethod"/>

  4. Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.
    <uc:TestUserControl ID="testControl" runat="server"
    MyEvent="TestMethod"/>

Answer: Answer is a, c
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.

;