c# - adding up values of two textboxes and putting the computed value into the database -


I am creating an application that has 3 text boxes, the user uses two integer values, and then 3 text boxes There is a readable box and this means that the sum of the two input values ​​is to be included. After all these input values ​​then want to add their respective field int to the database table. Can anyone help me in implementing this code?

As Mark said, your question is very obscure, maybe you want something like this: / P>

  int a, b, c; If (int.TeaPers (text box 1 text, one a) & int. Tray purse (text box 2. text, outb)) {C = A + B; TextBox3.Text = c.ToString (); MyNumberRepository.Add (c); // Assume that you already have a way of writing DB; }  

Assure access to UI elements directly by name. If your code is behind the price or values, then replace textBoxX.Text with those values.


Comments