Set connectionstring dynamically

Set connectionstring dynamically

Forum member · May 10, 2009
we need to set the connectionstring of the dplx-file from the c# page which uses them as template. this code from version 4 doesn't seem to work for v5 ... Query rptTestQuery = (Query)rptTest.GetQueryById("Query1"); rptTestQuery.ConnectionString = "XYZ"

Re: Set connectionstring dynamically

Forum member · May 10, 2009
ok, got it, you guys just made it a lot easer it with v5 ;-) had to use #Global.AppSettings["SqlConnString"]# simply to get the value from web.config