Solved

reference namespace in different asp.net app 2.0

Posted on 2009-04-02
2
314 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# Update Status Bar.... 1 24
ASP.Net Session State alternatives 3 30
Image(7) 1 37
Different Delete Messages 7 19
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now