Solved

Importing a Namespace in a UserControl?

Posted on 2014-01-10
2
219 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 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