Access Database Connectionstring in web.config
Hello,
I m using this ConnectionStrings but error is Keyword not supported: 'provider' please solve this error..
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["AccessConnectionString"].ConnectionString);
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="AccessConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|D:\Zalak\R_Samaj\App_Data\MatriData.mdb" providerName="System.Data.OleDb" />