Solved

Importing a Namespace in a UserControl?

Posted on 2014-01-10
2
223 Views
Last Modified: 2014-01-10
I'm trying to create a User Control in which I have a combobox that needs to access the Business Layer of my application. I tried using the "Imports" statement but my Business Layer (which is a separate project) wasn't one of my options? Is it NOT possible to import a class from another project that is included in the Solution?

Thanks!
0
Comment
Question by:BlakeMcKenna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39772016
Have you created a reference to the business layer project in the project that contains the usercontrol you should then be able to use the Imports statement.

Right click the project containing the usercontrol in solution manager and select add reference.
0
 

Author Closing Comment

by:BlakeMcKenna
ID: 39772044
Actually, you just triggered a thought. My UC is actually a separate project in itself. I just added a reference to that project and that did the trick!

Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question