I have this conexionstring and I would like from the controller to change the data source and other parameters, how can I do this? Thanks in advance
You can not do that. The configuration file is a non-editable file at runtime or compilation, used for what its own name defines.
What you can do is indicate several connection chains and at run time use one or the other, precisely for that there is the configuration file (you configure different chains to use during execution).
In the config
you define as many connection chains to the different databases as you need and depending on the user that initiates the session (or operation that you are going to do), you use one or the other. It's just adding more lines <add name=...../>