?
Solved

reference namespace in different asp.net app 2.0

Posted on 2009-04-02
2
Medium Priority
?
320 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

800 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