Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

reference namespace in different asp.net app 2.0

Posted on 2009-04-02
2
Medium Priority
?
322 Views
Last Modified: 2012-05-06
Hello there,

I am developing an asp.net site, inside of this site I have YAF running in a virtural directory as separate App named yaf.
In my main app, I followed the steps from yaf forum to integrate the main app with yaf app. Basically I change the web.config in the main app. and copy over the yafnet.config to the root folder. the purpose is  to make the login in main app will also login the user in YAF.
In my login page I can reference the yaf namespace with
 using YAF
 then
 object userID = yaf.DB.user_login(1, UserName.Text, sPassword);
This worked fine.

Now I have another app newCart also inside of another virtual directory. How can referce the yaf namespace?
the structure is
/main
/main/yaf
main/newCart
Any help is grately appreciated.
0
Comment
Question by:tomcattyy
[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 12

Accepted Solution

by:
williamcampbell earned 2000 total points
ID: 24054457
Are they all in the same Project?  If so then  yaf.DB.user_login should also work in newCart. If not then
a using yaf.db;  At the top of the cs should do it.  

If it complains then right click the project and choose add references, click the project TAB and choose yaf

wc
0
 
LVL 1

Author Closing Comment

by:tomcattyy
ID: 31565964
Thanks you very much, that's exactly waht I am looking for
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

650 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