OleDbConnection conn; OleDbCommand comm; OleDbDataReader dr; conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\data1\jana.mdb"); comm = new OleDbCommand("insert into mans1 values('" + TextBox1.Text + "','" + TextBox2.Text + "')", conn); conn.Open(); dr = comm.ExecuteReader(); conn.Close();
string str="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\data1\\jana.mdb"; conn = new OleDbConnection(str);
conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\data1\jana.mdb");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)