Last post Aug 14, 2014 07:11 AM by steschu
Aug 13, 2014 08:42 AM|steschu|LINK
I created my own ResourceProvider (MS SQL) and I want to use it in many of my ASP. NET website projects. I know how to set it in my web.config:
<globalization uiCulture="en" culture="en-US" resourceProviderFactoryType="Foo.Resources.FooResourceProviderFactory, Foo.Resources" />
But in the code of my ResourceProvider classes the connection string name ist hardcoded. Since connection string names differ from web project to web project (even sometimes the name of the SQL table name that contains the localization strings), I wonder
if it is possible to pass a parameter via the web.config fo rthe connection string?
Thanx for help,
Aug 14, 2014 07:11 AM|steschu|LINK
I found out that this best done by creating a ConfigurationSection in the web.config file.