Hi, I am new to ASP and have a background in Java programming, I am trying to create a form table that allows the user to add rows dynamically to it but I can't seem to get the variable to work correctly, it keeps reseting to the input field. I, in essence need the equivalent of a static variable. Thanks in advanced for your time. Here's some of the code I've been working on:
if (Request("totalRows") < 5) then
rows = 5
else
rows=Request("totalRows")
end if
for i=1 to rows
......create rows in table
next
x = i + Request("numRows")
Response.write("Add rows <input name=numRows value="""&Request("numRows")&""" onChange=""document.location='
if (Request("totalRows") < 5) then
rows = 5
else
rows=Request("totalRows")
end if
for i=1 to rows
......create rows in table
next
x = i + Request("numRows")
Response.write("Add rows <input name=numRows value="""&Request("numRows")&""" onChange=""document.location='