Change connection string in Web.Config using C# and VB.Net in ASP.Net

Last Reply one month ago By dharmendr

Posted one month ago

Hi,

can you help me,

I want to change the catalog from the web.config from some form but from the code behind

<add name="Gabook_ProductoConnectionString" connectionString="Data Source=servidor;Initial Catalog=change from code behind c#;Persist Security Info=True;User ID=sa;Password=Clave"
providerName="System.Data.SqlClient" />