Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Do While Not objRS.EOF
'Write out the beginning of the tag
Response.Write "<OPTION VALUE=""" & objRS("RAD") & """"
'Write the selected attribute on the matching tag only
If rsProperty("District") = objRS("RAD") Then Response.Write " SELECTED"
'write the rest of the tag
Response.Write ">" & objRS("DistrictOffice") & "</OPTION>"
objRS.MoveNext
Loop
<SELECT name="cboDistrictOffice" size="1">
<%
'Check for database errors
Call CheckforErrors(oConn)
'Create Recordset and Connection
Set objRS=Server.CreateObject("ADODB.Recordset")
sqlText = "SELECT DistrictOffice, RAD FROM ltblDistrictOffice"
objRS.Open sqlText, oConn, adOpenKeyset
'if objRS is not empty then
'loop through the recordset to populate the combobox
Do While Not objRS.EOF
'Write out the beginning of the tag
Response.Write "<OPTION VALUE=""" & objRS("RAD") & """"
'Write the selected attribute on the matching tag only
If rsRecord("RAD") = objRS("RAD") Then
Response.Write " SELECTED"
'write the rest of the tag
Response.Write ">" & objRS("DistrictOffice") & "</OPTION>"
objRS.MoveNext
Loop
'close the recorset
set objRS = nothing
%>
</SELECT>