Why not the connectionString element of ASP.Net 2.0

Posts   
 
    
aazzihh
User
Posts: 6
Joined: 15-Nov-2005
# Posted on: 16-Nov-2005 20:15:13   

Just a suggestion.

Would it be possible to store the ConnectionString used by DataAccessAdapter within the new connectionString element of ASP.Net 2.0. It would be nice to have a standard location for storing these and to not mix with other keys within appSettings.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 17-Nov-2005 10:26:39   

At the moment the string is in the appSettings, to keep the # of templates to a minimum (the config read routine is in the template).

I'm aware that in .NET 2.0, a special tag is reserved for it, and it will likely be moved to that tag in v2.0, IF it allows for more than one connection string.

If you want to use the connection string tag now, you can. Read the connection string yourself and pass it to the DataAccessAdapter constructor.

Frans Bouma | Lead developer LLBLGen Pro