Click here to Skip to main content
15,894,955 members

Comments by Lotus90 (Top 15 by date)

Lotus90 19-Feb-13 10:48am View    
Yea . I'm sure too , still not detect it !
Lotus90 19-Feb-13 10:46am View    
public string GetConnectionString()
{

return System.Configuration.ConfigurationManager.ConnectionStrings["ComputerManagement"].ConnectionString;





}
private void button1_Click(object sender, EventArgs e)
{
try
{
OleDbConnection conn = new OleDbConnection(GetConnectionString());
OleDbCommand command = new OleDbCommand();

command.CommandType = CommandType.Text;


conn.Open();
command = conn.CreateCommand();
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.Text + "','" + textBox5.Text + "','" + textBox6.Text + "')";
command.ExecuteNonQuery();


conn.Close();
}
catch (Exception) { throw; }
Lotus90 19-Feb-13 7:54am View    
I search the web and I don't get what I want :)
Lotus90 19-Feb-13 7:54am View    
I did that ; but when I add it to my form and want to write an insertion query inside a button ;
It doesn't connect to the database ?
Lotus90 16-Dec-12 7:29am View    
But I'm downloading windows 8 dear! ; I think the problem come from the VMWare it self