Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/02/2014, 09:40
Hectorosomalo
 
Fecha de Ingreso: febrero-2014
Mensajes: 2
Antigüedad: 10 años, 2 meses
Puntos: 0
Pregunta problemas con for y muestra de contenido

estimados junto con saludarlos les escribo para solicitar ayuda tengo un sitio en asp.net en el cual tengo un boton que permite cambiar el contenido de un label eso lo ago sin problema ahora la gran complejidad es que son varios registros y estos se muestran por medio de un for y al momento de seleccionar el cambio especifico del idioma de uno me los cambia todos adjunto codigo para su revisión de antemano muchas gracias
Código:
 <table width="640" border="0" cellspacing="0" cellpadding="0">
                   <%If publicaciones.mostrar_publicaciones.Count = 0 Then%>
                         <caption>
                             <p>
                                 No existen denuncias en la base de datos</p>
                               
                             <% else  %><%   For Me.value = 1 To publicaciones.Mostrar_publicaciones.Rows.Count%>
                             <tr>
                                 <td width="176">
                                     <img width="187px" height="187px" src="<%= ruta & publicaciones.mostrar_publicaciones.Rows(value - 1).Item(5).ToString %> " />
                                 </td>
                                 <td valign="top" width="487">
                                     <table align="right" border="0" cellpadding="0" cellspacing="0" width="439">
                                         <tr>
                                             <td colspan="2"><span class="titulonoti">
                                                 <asp:Label ID="Labeltitulo" runat="server"><%= publicaciones.estados.Rows(value - 1).Item(1).ToString %></asp:Label>
                                                 </span></td>
                                         </tr>
                                         <%If publicaciones.Mostrar_publicaciones.Rows(value - 1).Item(4) = "" Then%>
                                     </table>
                                 </td>
                             </tr>
                             <%Else%>
                           
                                                                               
                             
                             <tr>      
                                 <td class="auto-style1" colspan="2"><span class="read">
                                    <%-- <button ID="bing" runat="server" class="boton1" onclick='changeText()' value='1'></button>
                                     <button ID="bespa" runat="server" class="boton2" onclick='changeText()' value='2'></button>--%>
                                     <asp:Label ID="Labelingles" runat="server">Read in English</asp:Label>
                                     <asp:Button ID="Button1" runat="server" CssClass="boton" />
                                     <asp:Label ID="Label9" runat="server">Leer en Español</asp:Label>
                                     <asp:Button ID="Button2" runat="server" CssClass="boton2" />
                                     </span></td>
                             </tr>
                             <%End If%>
                             <tr>
                                 <td colspan="2" height="88"><span class="textonoti">
                                      <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                             <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"><ContentTemplate>
                               <%--  <script>

                                     function changeText() {
                                         var ingles = document.getElementById('bing').value;
                                         var espa = document.getElementById('bespa').value;
                                         if (ingles == 1) {
                                             var userInput = '<%= publicaciones.Mostrar_publicaciones.Rows(value - 1).Item(4).ToString()%>';
                                             alert(userInput);
                                             document.getElementById('LabelContenido').innerHTML = userInput;
                                             window.location.reload(false)
                                             document.getElementById('bing').style.display = 'hidden';
                                             document.getElementById('bespa').style.display = 'none';
                                         }
                                         else {
                                             document.getElementById('bespa').style.display = 'hidden';
                                             document.getElementById('bing').style.display = 'none';
                                         }
                                     }

                    </script> --%>
                                     <% variable = publicaciones.mostrar_publicaciones.Rows(value - 1).Item(3).ToString%>
                                <%-- <% variable2 = publicaciones.mostrar_publicaciones.Rows(value - 1).Item(0).ToString%>--%>
                                     <asp:Label ID="LabelContenido" runat="server"><%=variable  %></asp:Label>
                                     </span></td>
                                  </ContentTemplate></asp:UpdatePanel>  
                             </tr>
                             <tr>
                                 <td width="233"><a href="<%=url & publicaciones.mostrar_publicaciones.Rows(value - 1).Item(0).ToString%>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','archivos/botones/b_leermas2.png',1)">
                                     <img src="archivos/botones/b_leermas.png" name="Image21" width="115" height="41" border="0" id="Image21" />
                                     </a></td>
                                 <td align="right" width="206">
                                     <img src="archivos/minilogos.png" width="43" height="20" />
                                 </td>
                             </tr>
                   </caption>
          </table>  
             
          <br /></td>
        </tr>
      </table>
                    
                   
     
           <table width="661" border="0" cellspacing="0" cellpadding="0">
               <tr>
          <td width="637" height="36" background="archivos/separador.jpg">&nbsp;</td>
        </tr>
        
         <%Next%>
      </table>  

        <%  End If%>
 
      <br />