G
Guest
I have some legacy ASP code that looks like this:
<%
if not (Rs.EOF) then
i=0
do while not Rs.EOF
i=i+1
PaymentItemName = Rs("PaymentItemName")
PaymentItemCode = Rs("PaymentItemCode")
%>
<tr>
<td><input type="text" name="PaymentItemName_N<%=i%>" size="20"
value="<%=PaymentItemName%>" style="background:#D5FFC8"
<%=Use_permission%>></td>
<td></td>
<td><input type="text" name="PaymentItemCode_N<%=i%>" size="10"
value="<%=PaymentItemCode%>" <%=Use_permission%>></td>
</tr>
<%
loop
end if
%>
What would be the C#.NET equivilent?
I tried (snipped for ease of reading):
<td><input type="text" name="PaymentItemName_N<%=i;%>" size="20"
value="<%=PaymentItemName;%>" style="background:#D5FFC8"
<%=Use_permission;%>></td>
and I just get errors.
<%
if not (Rs.EOF) then
i=0
do while not Rs.EOF
i=i+1
PaymentItemName = Rs("PaymentItemName")
PaymentItemCode = Rs("PaymentItemCode")
%>
<tr>
<td><input type="text" name="PaymentItemName_N<%=i%>" size="20"
value="<%=PaymentItemName%>" style="background:#D5FFC8"
<%=Use_permission%>></td>
<td></td>
<td><input type="text" name="PaymentItemCode_N<%=i%>" size="10"
value="<%=PaymentItemCode%>" <%=Use_permission%>></td>
</tr>
<%
loop
end if
%>
What would be the C#.NET equivilent?
I tried (snipped for ease of reading):
<td><input type="text" name="PaymentItemName_N<%=i;%>" size="20"
value="<%=PaymentItemName;%>" style="background:#D5FFC8"
<%=Use_permission;%>></td>
and I just get errors.