Knowledgebase: ODBC
connect to msAccess in
Posted by Durand Somerville on 20 August 2011 10:46 PM

How to connect MSAccess database in ASP.NET




First Open Web.Config of your Application and Write Down Following Code in Web.Config File.

in appSettings tag
add key="constr" value="Provider=Microsoft.Jet.Odbc.4.0;DSN=resume;User Id=admin;Password=admin;"

end appSettings tag

Now open your Application and write down following Connection String

OdbcConnection Objcon = new OdbcConnection(ConfigurationManager.AppSettings["constr"]);

You Get More Details on Connection String in



(0 vote(s))
Not helpful