LIVE DEMO : NA ( Not Available ) .
CODE : Download The Source Code HERE . I want to briefly explain what this Code contains . Here I have used the Following Code. This code could be used and cut-copy-pasted in thebutton click event . Any doubts may be leaved as Comments
OleDbConnection oleDbConnection = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source=" + Server.MapPath("~/db.mdb"));
OleDbCommand oleDbCommand = new OleDbCommand();
oleDbCommand.Connection = oleDbConnection;
oleDbCommand.CommandText = "INSERT INTO Table1 (Name , Surname )VALUES ('" + TextBox1.Text + "', '" + TextBox2.Text + "')";
oleDbConnection.Open();
oleDbCommand.ExecuteNonQuery();
oleDbConnection.Close();