-
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?
-
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.