Connection String Asp.Net With MsAccess

Connection String
Connect Asp.Net Application With MS Access.

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"]);

Now Objcon Object you can use as Connection Object

if any query then just reply me.

Prev Post                                                      All Post                                                           Next Post

Posted in |


  1. sanjana Says:

    how to connect the database in using c#

  2. Ketan Patel Says:

    Hello sanjana,

    Are you asking for SQL server ?

    Please give me details what you want. Are you want full coding ?

  3. Aditi Devyani Says:

    I write same code in web.config
    and in script tag of .aspx page but still not working.

  4. Ketan Patel Says:

    Hello Aditi,

    Can you paste your code here.

    Or sed me your code on Will try to help you.

Post a Comment