Hi,
Please help. I am not able to access class from bussiness logic folder in asp page
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ChandrakerPosted Jun 14, 2011, 10:03 AM
I don't see any issue in the code you provided. If you are not able to access the class than it must be reference or import issue.
If this class is in separate project you need to add reference of that project in your web project. And on code behind you need to import the namespace like this:
using clsregisteration;
Than you can directly created object of your register class and use its methods.
If you still see issue can you provide copy of your code behind file where you using this class.
Kavita BPosted Jun 14, 2011, 12:27 AM
I have attached the code.. Plzz let me know how i can access those methods in aspx page
Pradeep ChandrakerPosted Jun 10, 2011, 10:23 AM
Kavita BPosted Jun 10, 2011, 5:04 AM
I tried Sandeep`s suggestions but its not able to access class.. All classes are public and proper namespace is also given yet not able to access
Pradeep ChandrakerPosted Jun 9, 2011, 10:04 PM
Posted Jun 9, 2011, 6:40 AM
Then try Sandeep Shekhawat suggestions.
Jaganathan BantheswaranPosted Jun 9, 2011, 5:36 AM
Possible reasons,
Check the class is defined as public
Check you have added the namespace of Business logic class in UI code-behind
Sandeep ShekhawatPosted Jun 9, 2011, 5:33 AM
(i)Class in Bussiness logic should be public.
(ii)Call proper namespace in ur asp.net page means Business logic class namespace write in aspx.cs page using.
(iii)Add reference of dll in asp.page if ur Bussiness logic in class library.