Using ASP VBScript:
i have a listbox(selFno), which displays flight numbers, whose values
have been retreived from a database. and when i change the listvalue
value, i want the textbox(txtTime) to automatically retrieve the
corresponding flight time for the selected flight number and display it.
please could you tell me how could i do this?
code:
<select name="selFno">
<option value="" selected>Choose One</option>
<%
While (NOT ChkRS.EOF)
%>
<option value="<%=(ChkRS.Fields.Item
("Flight_No").Value)%>"><%=(ChkRS.Fields.Item("Flight_No").Value)%>
</option>
<%
ChkRS.MoveNext()
Wend
%>
</select>
<label>Flight Timing : </label>
<input type="text" name="txtTime">