Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. protected void btnaceptar_Click(object sender, ImageClickEventArgs e)
  2. {
  3.  
  4. string MensajeError = "";
  5. int retornomensajes = 0;
  6.  
  7. int retorno = 0;
  8. DTTarjetas d = null;
  9. if (hdopcionseleccionada.Value == "Add") // Here I check if the button acepts the Add button
  10. {
  11. // do something
  12. }
  13. else if (hdopcionseleccionada.Value == "Modify") // Here I check if the button acepts the Modify button
  14. {
  15. // do something
  16. }
  17.  
  18. // When this method is called because of 'hdopcionseleccionada.Value == "Modify"' it updates the textbox
  19. // When this method is called because of 'hdopcionseleccionada.Value == "Add' it don't update the textbox
  20. CargarGrilla("Boton aceptar"); // Here occurs the problem
  21. }
  22.  
  23. private void CargarGrilla(string metodo)
  24. {
  25. //Tiempos2 is the textbox
  26. Tiempos2.Text += "log 1: "+metodo +"nr";
  27.  
  28. //..do something
  29.  
  30. Tiempos2.Text += "log 2: " + metodo + "nr";
  31.  
  32. //..do something
  33.  
  34. Tiempos2.Text += "log 3: " + metodo+"nr";
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement