Want to connect to another mssql along with umbraco db
Hello All,
I m new to Umbraco ....i have installed umbraco and its working fine ...we have made a .net user control which gets data from another mssql ...
we tried adding connection string in the web.config of umbraco but it didnt work,,,we tried adding hardcoded connection string in the user control to test and that worked well..
So wanted to know what could be the issue ...am i doing anything wrong or am i missing any step...?
Much depends on what you are trying to accompish with the data from the other SQL database.
Seeing that your usercontrol works fine when hardcoding the connection string, it should also work when you add the connection string to the web.config as an additional appsetting:
Want to connect to another mssql along with umbraco db
Hello All,
I m new to Umbraco ....i have installed umbraco and its working fine ...we have made a .net user control which gets data from another mssql ...
we tried adding connection string in the web.config of umbraco but it didnt work,,,we tried adding hardcoded connection string in the user control to test and that worked well..
So wanted to know what could be the issue ...am i doing anything wrong or am i missing any step...?
Please guide me.....waiting for reply....
Regards,
Jinesh
Hi Jinesh,
Much depends on what you are trying to accompish with the data from the other SQL database.
Seeing that your usercontrol works fine when hardcoding the connection string, it should also work when you add the connection string to the web.config as an additional appsetting:
And in your usercontrol you should be able to fetch this connectionstring via the ConfigurationManager class:
is working on a reply...