Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: linking listbox with textbox(database)


Message #1 by "Akshatha" <aksh681@h...> on Sat, 15 Feb 2003 06:42:34
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">


  Return to Index