title: Call Method of one .ascx control to another .ascx control
body: <p>I have 2 user control name as A.ascx, B.ascx and both of them are in single .aspx page.
  I have one method let say Getdata() in A.ascx page.
  How should I called that method in B.ascx.cs </p>
  
  <p>I have tried some stuff on A.ascx page as </p>
  
  <pre><code>public partial class A : System.Web.UI.UserControl
  {   
    public event EventHandler BindDataTotalSummary;
  
     public void BindDataTotalSummary()
    {
        //For example
        textbox1.Text = "";
        TaxesBreakdownRepeater.DataSource = dt;
        TaxesBreakdownRepeater.DataBind();
     }
  }
  </code></pre>
  
  <p><strong>How should i call this method in B.ascx.cs page</strong></p>
  
  <pre><code>public partial class B : System.Web.UI.UserControl
  { 
     public void MethodB()
    {
        A objectA= new A();//Showing error
        BindDataTotalSummary abc=new BindDataTotalSummary();//Showing error
       //Some Stuff of code
     }
  }
  </code></pre>