How to recommend storing the username and password in the web.config file. Add a project reference to System.Configuration and a web.config like so:
and then you can access them like:
string MyUsername = ConfigurationSettings.AppSettings["ProxyUsername"];
No comments:
Post a Comment