I want to know how to change automatically the connection string of my app so when I\'m working on it in my pc, it uses my local SQL Server and once I publish it then uses t
you can split your web.config like
At deployment time choose appropriate config file. You can visit this link to learn how to manage multiple web.config file in single project.
OR
If you don't want to create multiple web.config files refer Single web.config file across all environments (dev, test, prod) from codeproject