Solved

reference namespace in different asp.net app 2.0

Posted on 2009-04-02
2
317 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
2 Comments
 
LVL 12

Accepted Solution

by:
williamcampbell earned 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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