ahmed sa

ahmed sa

  • NA
  • 289
  • 129k

Updating record in textchanged event confuse navigat record

Jan 29 2014 9:30 AM
Hi guys i have problem
I need to update data in tables without using button i want only using textbox changed event
 FleetManagment.Fleet fleet1 = new FleetManagment.Fleet();
 string a = fleet1.UpdateDriver("Data Source=" + value1 + ";Initial Catalog=" + value2 + ";User ID=" + value3 + ";Password=" + value4 + "", Convert.ToInt32(textBox1.Text), textBox2.Text, textBox3.Text, textBox4.Text);
              MessageBox.Show("Record changed successfully");
         
                fillcontrol();
but problem when i load the data using load event 
or press on next navigation button it give me same message box
How i make this message "Record changed successfully" shown only when update record and not show when browsing records or incresing
 

Answers (17)