[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

reference namespace in different asp.net app 2.0

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
tomcattyy
Asked:
tomcattyy
1 Solution
 
williamcampbellCommented:
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
 
tomcattyyAuthor Commented:
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now