Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm doing a asp.net project by n-tier architecture. But when i use a packare suppose Business Logic layer package in UI layer and create a instance of a class of that packege and than try to call a method using that object than i coouldn't find any method of that class. I'm giving a example-

C#
using ENSII.BAL;

protected void ButtonAddCat_Click(object sender, EventArgs e)
{
        string category = TextBoxCat.Text;

        CatagoryHierarchy cat = new CatagoryHierarchy();

        cat.{can't get required method of BAL.CatagoryHierarchy to use}
}
Posted
Updated 27-Jul-10 0:50am
v2
Comments
Yusuf 27-Jul-10 7:40am    
Are you trying to call a public method?
sazib 27-Jul-10 7:45am    
ya.
koool.kabeer 29-Jul-10 6:50am    
yeah that method must be PUBLIC

1 solution

U can try keeping your class in APP_CODE Folder.
It can solve your problem.And u will be able to access the methods and all.

Cheers :-O
 
Share this answer
 
Comments
sazib 27-Jul-10 8:37am    
I've kept the dll of all packages which i'll use in the UI layer.Is it ok?
sazib 29-Jul-10 2:09am    
I've kept the dll of all the packages in bin folder.Is it ok?
shanawazway 29-Jul-10 6:10am    
yes , keep ur classes and DLL in APP_CODE folder. And dont forget to reference the DLL.

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