Could somebody help me with the following problem. When I select a particular equipment, the catalogue containing products is dynamically generated. The products belong to that particular equipment. The code for that is :
<%Do while not rsProduct.EOF%>
<TR><TD><IMG SRC=<%=rsProduct("ImageURL"
%> width=100 height=90></TD>
<TD><% =rsProduct("ProductName"
%></TD>
<TD><% =rsProduct("Price"
%></TD>
<TD><% =rsProduct("Description"
%></TD>
<TD><INPUT type="text" size=2 id=text1 name="<%=rsProduct("ProductCode"
%>"> <INPUT type="button" value="Add" id="<%=rsProduct("ProductCode"
%>" name="<%=rsProduct("ProductCode"
%>"TD>
</TR>
<%rsProduct.MoveNext%>
<%Loop%>
It works well. It also generates text boxes and buttons next to each product to update quantity for any product into a database. My question is how to write procedure for that buttons to update quantity as they are generated by server-side scripts dynamically. How can I access properties of the text boxes?
Something like:
<% For Each objItem in Request.Form…etc……
But I have to update quantity for a particular product code in a database associated with particular textbox. How to refer to a particular name of the textbox in server-side script?
<%Do while not rsProduct.EOF%>
<TR><TD><IMG SRC=<%=rsProduct("ImageURL"
<TD><% =rsProduct("ProductName"
<TD><% =rsProduct("Price"
<TD><% =rsProduct("Description"
<TD><INPUT type="text" size=2 id=text1 name="<%=rsProduct("ProductCode"
</TR>
<%rsProduct.MoveNext%>
<%Loop%>
It works well. It also generates text boxes and buttons next to each product to update quantity for any product into a database. My question is how to write procedure for that buttons to update quantity as they are generated by server-side scripts dynamically. How can I access properties of the text boxes?
Something like:
<% For Each objItem in Request.Form…etc……
But I have to update quantity for a particular product code in a database associated with particular textbox. How to refer to a particular name of the textbox in server-side script?