Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. Intentaba ponerlo así:
  2. String url = Session["url"].ToString();
  3.  
  4. if(contador <= 5) //verifico que mi contador sea menor o igual a 5
  5. {
  6.     if(txtURL.Text == "")
  7.     {
  8.         txtURL.Text = url;
  9.     }
  10.     if(txtURL2.Text == "")
  11.     {
  12.         txtURL.Text = url;
  13.     }
  14.     // Y así con 3 if mas...
  15.     // en cada if reviso si los labels están vacios por primera vez y si lo están, pongo una url
  16.     // pero el problema es que verifica en todos los if, así que me sale el mismo url que guardo EN TODOS LOS LABEL's
  17. }
  18. else
  19. {
  20.     // Aquí reemplazaría los labels por el 6to url
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement