Dependant Dropdown Box

you must have heard this a 100 times.. but how do i fill a dropdown box dynamically based on the value selected in another dropdown box from a database?

View Replies


ADVERTISEMENT

Include Dependant

I've only recently begun using asp so i'm not that good, but my problem is this:
The navigation for my site is within an include file. However I have an inlcude navigation file for each section but the only thing that changes from file to file is the name of the section you are in, this seems a bit un-necessary.I.e contact, home, about us etc. Is there a way I can use asp to write the name of the section and so only need one navigation include file?

View Replies View Related

Dependant Drop Down

I got a form with many text boxes, checkboxes and 3 drop downs. From that 3, 2 are dependant. I can choose one drop down, and the next drop down should display the dependant values of the first drop down chosed. And I have a submite button to submit all these values to DB.

First problem: I cant keep the value of the selected text in the first drop down. It always goes back to the first value. (but the asp site extension changes accordingly).

Second problem: when the value of second drop down is updated, then the text I inserted in those text boxes, and the checkboxes i checked disappears!

I know its because the site is submitted again to update the second drop down. But how could I keep the values of other elements even though the drop down is updated?

View Replies View Related

3 Dependant Listboxes

Here is what I am looking to do. If you select listbox 1 then listbox 2 and listbox 3 will change.

If you change listbox 2 then listbox 3 will change. The problem is that listbox 3 will not change if listbox 1 changes. Code:

View Replies View Related

User Dependant Css

I am developing a webapplication for a company holding stocks for a number of customer companies. The customers can order parts via this new appliction. My application
is linked to each of the customers' home pages.

I want each user to 'believe' he still is in his company's pages by changing logo and i.e. backcolor depending on company. A person from company A will see his company's logo and colors and a person from company B will simultanously see his company's logo and colors. Can I achieve this with css. In that case How? Or is there another better method.

View Replies View Related

Calling Include Dependant

Is there a way that I can display certain text within an asp file dependant on the url? This is what I am trying to do:

In default.asp, if the url is default.asp?VariableHere, then the body of default.asp contains an include calling "VariableHere.inc" (replace VariableHere with the name of the include)

View Replies View Related

Dependant Drop Down Lists.

I need to populate a list box with values that will be determined by the selection of another list. What it is, is when we add a user, they get added to a city, eg Townsville and then there are a heap of groups that only apply to Townsville people.

So once I select Townsville as the location, I want to perform a search in AD and return the list of groups in the Townsville OU.

I am not exactly sure of the appropriate method to handle this in asp. If necessary, I could make a third page and just pass values to that from the second page. Is there a better way?

In case you are wondering, there are currently two pages. One is for use by supervisors/managers, and they fill out some details which get put into a URL that is emailed to the administrators.

Clicking on the link fills out the base form for the admin people, but I want them to have more access and to see more than the managers/supervisors that are submitting the request.

View Replies View Related

Dependant Drop Menus

How do I make a dependant drop box? For example, when a user selects Item5 on the first drop menu the second one populates with the options for Item5? I know it will probably use Java of some sort but I do not know the code.

View Replies View Related

Dependant Drop Down Lists

whether anyone had any knowledge of the use of dependant drop downs? For example i would like to choose a product based on the type i.e computer hardware, monitor etc then a list of all products of the same type be displayed in a following dropdown.

Any examples of similar things done, urls to try, your own experience? How simple is it to implement?

View Replies View Related

Making Dropdown Menu Dependent On Another Dropdown

I have a category that I will call "company". in my access DB, there are about 6 or so companies. On another table, I have a list of locations that are related to these companies.

What I want to do, is have a drop down menu that lists all the companies. When you select the company, the second drop down menu will automatically populate with the locations of the company you selected in the first dropdown.

Anyone know any links to some examples of this? My google searches have been pretty fruitless since Im having a bit of a problem trying to explain it concisely (as you probably noticed).

View Replies View Related

Dynamic Form Lists And Dependant Text Boxes?

I am having trouble with the ordering page. I would like a dynamic form list to look at a database and when the user selects a product code, the text boxes containing description and price change too to reflect the product code.

The user will be entering in their contact details, so I dont want the page to reload too because I will lose that info. Code:

View Replies View Related

Variable Name, Dependant On The Value Of Another Variable...

I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code:

View Replies View Related

CSS Dropdown

Does anyone have any code to display a dynamic dropdown menu (similar to Windows Start menu)? There seems to be a browser compatability problem with most that I've seen.

View Replies View Related

Get Value From Dropdown

I am trying to get the value of a dropdown box which is populated from a access database.

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("mydb.mdb"))

set rs=Server.CreateObject("ADODB.recordset")
sql="SELECT DISTINCT Company FROM Customers ORDER BY Company"
rs.Open sql,conn

company=request.form("company")

%>

I need to send dthe value of this dropdown to the next page which will response.write the company name. Any ideas on how to do this?

View Replies View Related

3rd Dropdown

i had done coding for two dependent dynamic drop down boxes.taking code from http://forums.aspfree.com/t53159/s.html......it is working nice
but now select 2nd box and populate 3rd one.i m very confused how make a changes in code for 3rd one.if any of u
have time i can send my code for urs technicalful advise

View Replies View Related

Dropdown Box

I have code to present on this forum, but not with me at the moment. This is what is happening now. On my page there is a drop down box that calls on an onChange javascript function. The drop down box dynamically displays locations depending on the location of the cars.

Therefore...if Toyota Camrys are in Philadelphia and New York, the drop-down box will display: ALL, Philadelphia, and New York. Selecting one will filter out only those in that location.

What i want to do is...change it so...it displays dynamically the locations horizontally...here is an example: PREFERED LOCATION? ALL PHILADELPHIA NEW YORK (all are links to filter out those that do not match the location).
i need to do it to save space and make it more user-friendly.

View Replies View Related

Getting Dropdown Value

I know this is supposed to be easy but I can't get this to work. I
have a dropdown that pulls all the Projects (tp_title) available. All
I want to do is get the ID (tp_id) of that record so I can get the
developer assigned to that project (tp_assigned_to). Then, when I get
the developer, I need that to be redirected to a second page. Code:

View Replies View Related

ASP Dropdown & XML

I've got an XML file that I use to populate a treeview control and a dropdown box. That works fine, although I now want to be able to sort the list of people in the dropdown list. Someone suggested using an XML template, but I'm a bit of an XML newbie and not sure how to do this. Code:

View Replies View Related

Dropdown Box

Lets say you have a dropdown box with few options in it. Several products have such a dropdown box. is there a way to do this following stuff.

I want one of that options in the dropdown box to be 'unique'. When selected, it would dissapear, or it can't be clicked on, on another product's dropdown. 'yes or no' answer would do just fine for now.

View Replies View Related

Dropdown

Now that I can store variables from a form listbox into a session variable... say there are 4 options from the dropdown like

model
type
area
performance

and the user selects performance.. I store the string "performance". now how do I place it back into the listbox after the user hits 'submit'? that way the selected values are shown.

View Replies View Related

Dropdown Box Value

i have a web page which allows user to update Subject information. There may be several subjects in the dropdown box. However, each person will have a subject allocated to him when he is inserted into the database.

As such, now when i want to update his particulars, in the Subject dropdown box, i would like to set his Subject to the one in the database followed by the rest which he can choose.

Eg.
Originally, Subject = Literature
Update:
in Subject dropdown box, i will see Literature at default but when i click the dropdown box, i will see the other options such as History, Gepgraphy etc. How should i go about doing this?

View Replies View Related

Dropdown On Textbox Using ASP

I have seen some techniques like this on the web. Currently, I'm using Combo
box which values came from database table. One disadvantage is when the
combo box have lots of values, users are complaining since you cannot use
keyboard to search the value that is needed.

View Replies View Related

Autocomplete In Dropdown

I'm trying to put a drop-down box on an asp, which will containing a list of
names.When a user starts typing a name that is in the list I want the text to
autocomplete
e.g. when the user types 'st' I'd like the text to autocomplete to steve or
stephen, depending on which is first in the list.

View Replies View Related

Dropdown List

How to display sql database data to dropdown list in asp?

View Replies View Related

Dropdown From The Database

It gives me a blank dropdown when there are values in the Currency Table and
it also does not display any form element that I place after this code.

<select size="1" name="Currency" >
<%
SQL = "Select CurrSymbol FROM Currency "
SET RS = CONN_STRING.Execute(SQL)
While NOT RS.EOF%>
<option value="<%=RS("CurrSymbol")%>"><%=RS("CurrSymbol")%></option>
<%
RS.MoveNext
WEND
Set RS = NOTHING
%>
</select>

View Replies View Related

Dependent Dropdown Box

I have a dropdown box getting data from a database, and I send the data to the database on form submition, But, I need to send another data to another column to the database according with the user dropdown box selecion. Example.

Dropdown option 1: DELL Corp.
Dropdown option 2: IBM Corp.
Dropdown option 3: Avante Systems

If the user select DELL Corp., it will send 'DELL Corp.' to the database but I need it to send dell.jpg to another column too. I have the code to send the data, but the relationship of the boxes is 'the thing'.
A solution almost like bellow is what I am looking for, but instead of, the selection in the first combo should point to another selecion in the second combo (so the second combo will have the dell.jpg value): http://forums.aspfree.com/code-bank...own-137839.html

View Replies View Related

Dropdown Retrieval

i now have my dropdown connected to my database. everytime the user adds a new record, he simply has to choose a Department from the dropdown menu. However, when he tries to edit that record, the value that he has chosen from the dropdown and has been saved to the database cannot be retrieved in the dropdown menu.
so i want to retrieve the data from the database INTO THE DROPDOWN so it would be the default value of that dropdown menu when the user edits his specific record.

View Replies View Related

Dropdown List

I would like to display 15 items (lines) in the dropdown list, but by
default the list displays only 11 lines. How can I have all the 15 items
displayed in my dropdown list

View Replies View Related

Format Dropdown Bot

How would I format this dropdown box to uppercase and where would I place the UCase syntax?

<SELECT name="txtSearchCity" class="form">
<%
Do while not Rs.EOF
%>
<option value="<%=Rs("Addr City")%>"><%=Rs("Addr City")%> </option><%=Rs("Addr City")%>
<%
Rs.MoveNext
loop
%>
</SELECT>

View Replies View Related

DropDown Item

i have two dropdowns(dd1 & dd2) in the same page. dd2 items depends on the item index from dd1.when dd1 is onchange, the form will get the dd1 index value and then do a search in DB for the results to be input into dd2.How can i achieved that?

View Replies View Related

ASP Dropdown Option Value

Here is my page:

<form name=myForm>
<select onChange="myForm.forename.value = this.options[this.selectedIndex].value;">
<option value="Arnold">Pam
<option value="Mokoena">Joe
<option value="Seth">Pat
</select>

<input type=text name=forename disabled>
</form>

when inserting on the database,the value of the dropdown option is the same as the value of the textbox which is wrong.they must not have the same values example
when Pan is selected,then the value inserted to the database must be "pam" not Arnold.

View Replies View Related

Dropdown To Execute

what If i wanted to have a dropdown that executed a query based off the selection. so i have a dropdown on page and when they make there selection it queries other data with out submit?

View Replies View Related

Dynamic Dropdown

I have a table called tblParts. The are 3 fields: PartID, PartNumber and Price. I have a dropdown box on my ASP page that is dynamically populated with PartNumbers from the database.

I have a text field for the price. I want it when the user selects a part number from the dropdown to display the correct price in the textbox for that part. I "DO NOT" want the page to reload.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved