To get a connection string from .config file… Add a reference to System.Configuration and then use the following…
using System.Configuration; ... var con = ConfigurationManager.ConnectionStrings["connection name"].ConnectionString;
Post a Comment
No comments:
Post a Comment