Hello,
I am trying to do some dynamic content editing and have a few fields that were inserted from a dropdown box. When the user wants to edit the record, what is the best way to show the dropdown box dynamically. i.e. my code is like this:
set rs=db.execute("select * from workstations where customerid=" & custid)
if not rs.eof then
for each fld in rs.fields
if fld.name="os_id" then
response.write "<select name=os>"
*** here's where I need to show the dropdown for operating systems and show selected the actual record value ** Then do I have to do another recordset of the operating systems table??? Isn't there a better way?
response.write "</select">
else
response.write fld.name & " <input type=text name=" & fld.name & " value=" & fld.value & ">"
end if
I very much appreciate any ideas anybody has. Thanks very much.
I am trying to do some dynamic content editing and have a few fields that were inserted from a dropdown box. When the user wants to edit the record, what is the best way to show the dropdown box dynamically. i.e. my code is like this:
set rs=db.execute("select * from workstations where customerid=" & custid)
if not rs.eof then
for each fld in rs.fields
if fld.name="os_id" then
response.write "<select name=os>"
*** here's where I need to show the dropdown for operating systems and show selected the actual record value ** Then do I have to do another recordset of the operating systems table??? Isn't there a better way?
response.write "</select">
else
response.write fld.name & " <input type=text name=" & fld.name & " value=" & fld.value & ">"
end if
I very much appreciate any ideas anybody has. Thanks very much.