Results 1 to 2 of 2

Thread: Session vars to DLL

  1. #1
    RichH
    Guest

    Question

    Can I request a session variable from a dll. To pass the value as a property would require huge rewritings of code. If not is there any other way I could do it. The scenario is I have a database access dll. This is called from asp or from other dll's. The problem has arrisen whereby I need to pass the connection string to the component as we now have more than one database. Any ideas?

  2. #2
    Guest
    DLL's can't access session variables. You have to pass the session variable to the procedure as a parameter.

    If you want to maintain compatability with the current version of the DLL, you could either use an INI file or registry settings for your database connection information, then add a private function to the DLL that is called whenever a database connection is needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width