<connectionStrings> <add name="ComputerManagement" connectionString= "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=..... ; Integrated Security=false"/> </connectionStrings> </configuration>
try { OleDbConnection conn = new OleDbConnection(GetConnectionString()); OleDbCommand command = new OleDbCommand(); command.CommandType = CommandType.Text; command.CommandText = "INSERT INTO Clients(C_name,C_phone ,C_mob ,C_add , C_email ,C_account) VALUES ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4 + "','" + textBox5.Text + "','" + textBox6.Text + "')"; command.Connection = conn; conn.Open(); command.ExecuteNonQuery(); conn.Close(); } catch (Exception) { throw; }
+ textBox4
.Text
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)