cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
KRaymond
Level 2

web config set connection string from install

I want to change the server and the database in the web.config connection string based on what the user selects from the SQL Dialog.

Labels (1)
0 Kudos
(3) Replies
banna_k
Revenera
Revenera

Hi @KRaymond,

Try using  "XML File Changes" view to configure the web config file

OR  

try with a custom action to update the web config file.

0 Kudos

Thanks for the reply banna_k.  I have looked at both approaches.  I need to know where info is stored from the install when they select the SQL Server and the Database name.  Any examples would be great.

0 Kudos

Hi @KRaymond,

Each field in the dialog is bound with a property, you can use the property name to  retrieve the value later.  You can get the property names by exploring the dialog editor 

In case of SQL server, you can use [IS_SQLSERVER_SERVER] to get the value of IS_SQLSERVER_SERVER property. 

0 Kudos