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

How to connect MSAccess database in ASP.NET

 

see http://www.connectionstrings.com/

 

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 ASP.net

 

 

(0 vote(s))
Helpful
Not helpful