J
Jack
Hi,
I have a asp page where multiple rows for a client is generated using asp.
Some of these are combo boxes and some are text and are coming from a
recordset. Now, the following is the code to geneated one of those combo
boxes.
CODE:
<td align="left">
<font face="Verdana,Arial" color="#000000" size="1">
<select name="txtagency">
<option></option>
<%
Set RS_Agency = Server.CreateObject("ADODB.Recordset")
strSQL1 = "SELECT AgencyId, AgencyName FROM tblAgency"
RS_Agency.Open strSQL1, conn
Do Until RS_Agency.EOF 'populate workcodes
if not RS_Edits("AgencyId") = RS_Agency("AgencyID") then
response.write("<option value=" _
& RS_Agency("AgencyID") & ">" _
& RS_Agency("AgencyName") _
& "</option>")
else
response.write("<option selected value=" _
& RS_Agency("AgencyID") & ">" _
& RS_Agency("AgencyName") _
& "</option>")
end if
RS_Agency.movenext
Loop
RS_Agency.Close
set RS_Agency = nothing
%>
</select>
</td>
I need to reduce the size of this combo box. I would like to know, in the
present scenario, how can one control (reduce) the size of the combo box. I
believe what I am getting is the default value of combo box. Thanks.
I have a asp page where multiple rows for a client is generated using asp.
Some of these are combo boxes and some are text and are coming from a
recordset. Now, the following is the code to geneated one of those combo
boxes.
CODE:
<td align="left">
<font face="Verdana,Arial" color="#000000" size="1">
<select name="txtagency">
<option></option>
<%
Set RS_Agency = Server.CreateObject("ADODB.Recordset")
strSQL1 = "SELECT AgencyId, AgencyName FROM tblAgency"
RS_Agency.Open strSQL1, conn
Do Until RS_Agency.EOF 'populate workcodes
if not RS_Edits("AgencyId") = RS_Agency("AgencyID") then
response.write("<option value=" _
& RS_Agency("AgencyID") & ">" _
& RS_Agency("AgencyName") _
& "</option>")
else
response.write("<option selected value=" _
& RS_Agency("AgencyID") & ">" _
& RS_Agency("AgencyName") _
& "</option>")
end if
RS_Agency.movenext
Loop
RS_Agency.Close
set RS_Agency = nothing
%>
</select>
</td>
I need to reduce the size of this combo box. I would like to know, in the
present scenario, how can one control (reduce) the size of the combo box. I
believe what I am getting is the default value of combo box. Thanks.