Here is my Connection.cs:
public class Connection
{
public static string connectionstr = ConfigurationManager.ConnectionStrings["connectionstr"].ToString();
public static OleDbConnection DBconnection()
{
//
// TODO: Add constructor logic here
//
OleDbConnection con = new OleDbConnection(connectionstr);
if (con.State == ConnectionState.Open)
con.Close();
con.Open();
return con;
}
}
when i enter input values and submit, it shows error something like this,
This is the error:
System.Data.OleDb.OleDbException`: Could not find installable ISAM
I'm new to .NET framework and I just created login.aspx, so I don't have add any source code.
My connection string is
<connectionStrings>
<add name="connectionstr" connectionString="Provider=Microsoft.Jet.OleDb.4.0;Data Source=|DataDirectory|\registration.mdb;User Instance=true" providerName="System.Data.OleDb" />
</connectionStrings>