Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2003, 11:47 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fill text boxes from Combo Box?

<p class="label">Choose a Photo</></TD>
<TD valign=top size=20><select name="pic">
<option value=""></option>
<%for x=1 to RSL.recordcount%>
<option value="<%=RSL("Url")%>" <%if Request.QueryString("ID") > 0 then%><%if RS("Pic") = RSL("Url") then%><%Session("selectedpic") = RSL("Url")%> SELECTED <%end if%><%End if%>><%=RSL("Name")%></option>
        <%
        RSL.MoveNext
        next%>

This code plus the sql statment fills the combo box, which works fine. This is the name of the Logo, there are two other fields in the table. I want those other fields to show in text boxes when the logo is click from the drop down box.

__________________
-----------------------------------------------------------
\"Don\'t follow someone who\'s not going anywhere\" John Mason
 
Old December 10th, 2003, 05:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you tried using Javascript to populate the text box with the value from the dropdown ?
 
Old December 11th, 2003, 10:01 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, I would like to use VB script but it's not working right. Do I need to set up a function, I thought I could just use the onchange for the dropdown dox?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a text box from a combo box value dnf999 Access VBA 7 February 6th, 2012 02:24 PM
Count in combo box(display results in text box) mboyisis Access 4 April 4th, 2008 07:08 AM
Auto-Filling a Text box based on Multiple Boxes zuldan23 Access VBA 1 May 5th, 2006 10:17 AM
Combo Box and Text Box Rudner Beginning VB 6 1 November 8th, 2004 04:48 PM
text box to fill cell completely(no white border a Raif ASP.NET 1.0 and 1.1 Professional 0 August 20th, 2004 03:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.