Referencing class without Namespace

  • Thread starter Thread starter Charlie@CBFC
  • Start date Start date
C

Charlie@CBFC

Hi:

In the project I'm working on there are classes that don't belong to a
namespace. Problem is I need to reference a user control so I can use it to
cast a control being loaded dynamically to the correct type. Control
resides in a subdirectory. So... how do I reference and control in a
subdirectory that doesn't have a namespace?

Thanks,
Charlie
 
Charlie,

If the user control is within the same asp.net project, go to properties
(right click on the project) and find the namespace for the project.

The user control can be then accessed as
<namespace>.<subdirectoryname>.usercontrol

Regards,
Augustin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top