Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
private void button5_Click(object sender, EventArgs e)
     {
         string Name = textBox1.Text;
         string description = textBox2.Text;
        ManageBranches mb = new ManageBranches();
         mb.GetBranches(ActiveBranchId, Name, description, false);//iam getting error at GetBranches
         ClearFields();
     }
Posted
Comments
[no name] 2-Jan-16 13:15pm    
Are you passing correct no of params and type of params to GetBranches(). Secondly provide below:

Signature of ManageBranches class.
Signature of GetBranches method.

Lastly provide what is error you are getting exactly.
Member 12185899 2-Jan-16 13:23pm    
managebranches doesnt have definiation for getbranches
.why iam getting that ..
F-ES Sitecore 2-Jan-16 13:28pm    
The reason you're getting that is because there is no method on the ManageBranches class called GetBranches. If GetBranches is an extension method (ie defined elsewhere, not on the class itself) then you need to have the correct "using" statement at the top of the file.
[no name] 2-Jan-16 14:26pm    
If ManagerBranches doesn't contain GetBranches then you shouldn't call through instance of ManagerBranches class. If a method is not present inside a class then what are you trying to achieve.
Member 12185899 2-Jan-16 23:02pm    
Any Code pls?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900