Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/06/2011, 08:02
Piboy
 
Fecha de Ingreso: junio-2011
Mensajes: 3
Antigüedad: 12 años, 9 meses
Puntos: 0
Respuesta: Problemas con Tablas dinamicas y actualizacion

CODIGO DE JAVASCRIPT


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<script type="text/javascript">
var entrar = 0;
function clickboton(resultado) {

alert("Has pulsado sobre el resultado: " + resultado);

}

//funcion que servira para coger la ruta para buscar los ficheros PDF en la direccion web asociada a MANUALS
function carga()
{
if (entrar==0) {
entrar = 1;
rutacarga = window.location.href;
ruta = rutacarga.split('=');
//en ruta ficheros tendre la ruta donde buscar los manuales
rutaficheros = ruta[0];

}
}

</script>
<title></title>
</head>
<body bgcolor="#CCCCCC" onload="carga()" >
<form id="z_FormPrincipal" runat="server">
<div style="height: 601px">
<b>BÚSQUEDA&nbsp;CONTENIDO DOCUMENTOS PDF<br />

<br />

Esta parte es la que genera los campos de donde toma los valores
&nbsp;Elija idioma de los ficheros PDF:&nbsp; </b>


<asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="146px">
<asp:ListItem></asp:ListItem>
<asp:ListItem>Español</asp:ListItem>
<asp:ListItem>Chino</asp:ListItem>
<asp:ListItem>Inglés</asp:ListItem>
</asp:DropDownList>
<asp:Label ID="Label2" runat="server"></asp:Label>
<br />
<br />

<b> Capítulo del PDF: </b>
<asp:DropDownList ID="DropDownList2" runat="server" Height="22px" Width="40px">
<asp:ListItem> </asp:ListItem>
<asp:ListItem>01</asp:ListItem>
<asp:ListItem>02</asp:ListItem>
<asp:ListItem>03</asp:ListItem>
<asp:ListItem>04</asp:ListItem>
<asp:ListItem>05</asp:ListItem>
<asp:ListItem>06</asp:ListItem>
<asp:ListItem>07</asp:ListItem>
<asp:ListItem>08</asp:ListItem>
<asp:ListItem>09</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>32</asp:ListItem>
<asp:ListItem>33</asp:ListItem>
<asp:ListItem>36</asp:ListItem>
<asp:ListItem>37</asp:ListItem>
</asp:DropDownList>
&nbsp;
<asp:Button runat="server" Text="+" Height="22px" Width="27px" ID="añadir"
onclick="añadir_Click"/>
<br />
<br />
<asp:ListBox ID="ListBox1" runat="server" Height="146px" Width="160px">
</asp:ListBox>
<br />
<b>
Introduzca el patrón a buscar: <asp:TextBox ID="z_textbox" runat="server" Text=" " Height="22px" Width="161px"/>
&nbsp; </b>
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;

Boton que me genera la Tabla
<asp:Button ID="z_btnAceptar" runat="server" Text="Aceptar" onclick="z_btnAceptar_Click" Width="74px" />
<br />
<asp:Label ID="z_textMensaje" runat="server"></asp:Label>
<br />
<br />
<asp:Label ID="Label1" runat="server" Text="RESULTADOS: " Visible="false" Font-Bold="true"></asp:Label>
<br />
<br />
Tabla donde se generan las Filas con los documentos y los botones
<asp:Table id="Table1" runat="server" GridLines="Both" Height="88px" Width="596px" Visible="false" style="position:fixed;">

</asp:Table>
<br />
<br />
<br />
</div>
</form>
</body>
</html>