I am trying to encrypt the connection string that is stored in web.config file by programming. However, i am not being able to do that. Below is my code:-
public void EncryptConnString()
Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
ConfigurationSection section = config.GetSection("connectionStrings");
Please suggest me some measures and if i am wrong correct me...
Thanks and Regards