Any Takers?

Last post 02-19-2008 11:30 PM by Jessmmy. 1 replies.

Sort Posts:

  • Hmm [^o)] Any Takers?

    02-19-2008, 10:02 PM
    • Member
      152 point Member
    • igavemybest
    • Member since 02-20-2008, 2:49 AM
    • Posts 175

    Hello, I added an additional column in the aspnet_Users table in my database.  This stores the user's company ID key.  Also in every company record in the database, there is the same company ID key, which corresponds to its respective company in another table. How, do I filter all database queries after that user is logged on, based on their Company ID key, so that any and all database queries on any page the user visits only return database records that also have that same company ID key?  Ps., I am using Visual Studio 2005, SQL 2005

    This has been a tough one for me, probably with a simple answer.  No guesses please, I have gone through them all.  Any help and a solid answer would be much appreciated!

     

    Thanks a million!

  • Re: Any Takers?

    02-19-2008, 11:30 PM
    Answer
    • Member
      336 point Member
    • Jessmmy
    • Member since 04-30-2006, 8:21 AM
    • Posts 138

     As far as I knew, there are no generic way to filter on all pages. You have to pass "CompanyID" to each query and filter the result table.

    Hope it helps.
     

    I can do it!
Page 1 of 1 (2 items)