Ver Mensaje Individual
  #1 (permalink)  
Antiguo 31/08/2009, 10:36
Avatar de totiwuo
totiwuo
 
Fecha de Ingreso: septiembre-2008
Mensajes: 13
Antigüedad: 15 años, 7 meses
Puntos: 0
AYUDA: Como llenar un array en asp con textbox creados dinamicamente

Hola, si alguien me puede dar una idea se los agradeceria mucho.-

he creado una tabla que se llena con asp dinaicamente. No sé como hacer para mandar los idproduct de los input escondidos y la cantidad ??

Como llenar un array con los idproduct y quantity de los textbox y mandarlos con el metodo post a otra pagina asp. y como tengra que recibirlos.

<table >
<tr class="pcShowProductsMheader" height="30px">
<td width="53" ><strong>SKU</strong></td>
<td width="246" ><strong>Product</strong></td>
<td width="124" align="center" ><strong>Sug Retail price </strong></td>
<td width="73" align="center" ><strong>Price</strong></td>
<td width="73" ><strong>Qty</strong></td>
<td width="77"><strong>Add</strong></td>
</tr>
<%

While Not rs3.eof

%>
<tr>
<td><%=rs3("sku")%></td>
<td><%=rs3("description")%></td>
<td align="center"><%=rs3("bToBPrice")%></td>
<td align="center"><%=rs3("price")%></td>
<td>&nbsp;
<input name="IdProduct" value="<%=rs3("idProduct")%>" type="hidden"/>
<input name="quantity" type="text" style="font: 11px Arial;width:30px;border-width:1px;border-style:solid;text-align:center;border-color:#983f17;" size="5" value="" onclick="checkValue(this);" onfocus="checkValue(this);" onblur="verifyEntry(this,'');" /></td>
<td><input type="checkbox" name="idOption1" value="<%=rs3("idProduct")%>" /></td>
</tr>
<%
rs3.MoveNext
wend
set rs3=nothing
tempIdOpt = ""
tempIdOpt = request.querystring("idOptionArray")

Dim myProdructArray() 'Dynamic size array
session("Products")=""
for i=0 to UBound(myProdructArray)
session("Products")=myProdructArray(i)
next

if request.Form("quantity") <> 0 then

end if

%>
</table>