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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 9, 2011, 1:33 AM EDT
(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.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jun 9, 2011, 1:36 AM EDT
Possible reasons,
Check the class is defined as public
Check you have added the namespace of Business logic class in UI code-behind
Posted Jun 9, 2011, 2:40 AM EDT
Then try Sandeep Shekhawat suggestions.
Pradeep ChandrakerRank #941 · 2.2K reputationPosted Jun 9, 2011, 6:04 PM EDT
Kavita B135 reputationPosted Jun 10, 2011, 1:04 AM EDT
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 ChandrakerRank #941 · 2.2K reputationPosted Jun 10, 2011, 6:23 AM EDT
Kavita B135 reputationPosted Jun 13, 2011, 8:27 PM EDT
I have attached the code.. Plzz let me know how i can access those methods in aspx page
Pradeep ChandrakerRank #941 · 2.2K reputationPosted Jun 14, 2011, 6:03 AM EDT
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.