I am doing a project on asp.net.but problem is that i cannot connect database(ms access)from page.how can i get this connection?can any one send me source code to solve this problem?or give any better solution as soon as possible please..

dear friend
check it........

string constring=
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\cvs_root\log4net-1.2\access.mdb;User Id=;Password=;"

// you can change data source according to your database address

OleDbConnection con = new OleDbConnection(constring);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.