Give Dependent Listbox

how to give dependent listboxes in asp code.

View Replies


ADVERTISEMENT

Dynamic Dependent ListBox

I have a database table called Pumpdata. This table contains all the different pumps available. I had to make 2 other related tables one called pumpType which is just a description of Pump Types. ie.. (single, double, mixer etc..) and the other table is PumpManufacturer which contains a list of Pump Manufacturers.. the 2 tables are related to the pumpdatatable based on the TypeID (in PumpType) and MfgID(in PumpManufacturer)..

Ok the problem I'm faced with Is I need to create a form to get a particular pump based on the Pump Type, The manufacturer, and then the specific Model Number..

The First list box alllows the user to select the Pump Type, The second ListBox allows the user to select the manufacturers based on the pump selection. (Note in the pumpdata table there could be an occurance where a particulatar PumpManufacturer could have several Pumps of the same type (I just need to show one occurance of the PumpManufacturer here). Code:

View Replies View Related

Changing Values In 1 Listbox When Selecting Records In Another Listbox

I was wondering if you could help me with the following problem. I have 2 listboxes in my
webpage, 1 has cities, and the other lists the streets of the city from the first listbox.

When I click on a city, I want the 2nd listbox to populate with all streets in the city. The city and streets are saved in a database, so when the user selects the city, I will run a query on the database and populate the 2nd listbox with all streets.

How can I do this with normal ASP? I know how to do this with ASP.NET, but don't know how to activate this with normal ASP?

View Replies View Related

On IIS 5.1 ASP Pages Give 404 Error

I have been trying to submit a html form to an asp page. This results in 404 error. When i call a separate asp page with just a response.write or with a small text file i/o operation, it works fine.

But when i use a simple htm form with a text box and submit button gives a 404 error. All the pages exists. I use WinXP Pro/IIS 5.1.

Am i missing anything in settings? I tried restarting, reinstalling IIS and updating the patches to the latest but not of much help.

View Replies View Related

Add Str Numbers To Give A Total

tell me the syntax for adding string numbers together to give a total? Code:

strNumber1 = 4
strNumber2 = 2
strTotal = strNumber1 + strNumber2


The above code gives the result 4+2

If I change the strtotal to strNumber1 * strNumber2 it gives the result 8

If I change the strtotal to strNumber1 / strNumber2 it gives the result 2

If I change the strtotal to strNumber1 - strNumber2 it gives the result 2

So what do I use to get it to add the numbers together .

View Replies View Related

How To Give Physical Path

Please let me know how to avoid giving physical path & line number in the
error messages of web applications. Instead i would like to replace it with
general error message to the user.

View Replies View Related

If Table Doesn't Exist Give A Friendly Message

Just when I thought I was done , I try going to the "myfolder.asp" page and I get an error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E37)
[MySQL][ODBC 3.51 Driver][mysqld-3.23.55-nt]Table 'streetguide.max' doesn't exist
/streetguide03/members/myfolder.asp, line 73

Line 73 is in red.

This is because the user didn't have a folder created, because they didn't save anything to their folder. On another page I have code that creates a table with the same name as the UserName, only if they decide to save something in their folder. Code:

View Replies View Related

How Can I Give A Nice Print Friendly Feature Through IE For My Website Visitors

I just wanted to know if anyone can tell me how can I give my website visitors the feature of "FRIENDLY PRINTING" through IE. Code:

View Replies View Related

Dependent List

Can someone tell me why my "select2" menulist disappears??

Code:

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

Dependent Dropdowns

i have a form and i need the selection from the first dropdown to influence the results on the second dropdown.The first dropdown will have a list of guesthouses and based on the guesthouse chosen, the second dropdown will give the rooms available in that chosen guesthouse.

View Replies View Related

Dependent Check Box

currently need to do a dependent checkbox, mean when i choose 1st check box, 2nd check box will become visible and if i never choose it, 2nd checkbox will become blur and unclickable. may i know how to do it?

View Replies View Related

Dependent Listboxes

I have three listboxes
1 : company
2 : department
3 : function

I want the following functionality. when i choose a company all the available departments in that company must appear in listbox2 and when i choose a department all the available functions must appear. how can i do this with Java?

View Replies View Related

Dependent Texbox Combo

I have an application in asp; in my form I have a combo and a textbox, the combo is fill in from a database query. I cannot do the following: when selecting an item from the combo, it should send the ID of the combo to a textbox. In other words, when selecting an item, it must send the ID to a query and the result of this query send it to the textbox. I need to do this using vbscript and the onchange method.

View Replies View Related

Dependent Drop Down List

provide me a sample code for dependent drop down lists?I need to create a few drop down lists and they are dependent of each other. Their relations are very complex as 1 drop down list may affect 2 drop down lists.

View Replies View Related

Dynamic Dependent List

I have a set of dynamic dependent list boxes that are populted from a database. When I select the first box the second box is populetd with the correct items. If the first item is the desired selection another option has to be selected and then the first item has to be reselected for the list to work properly to update the next dynamic list box. To include the --Select-- in the second and third list box table would add several thousand rows to the table. If I added the --Select-- in the table it would add several thousand rows to the database.

View Replies View Related

Dependent Drop Down Boxes

I've gotten the dependent drop down boxes to work except, when I fill out the form, and get to where I click the first drop down box and make a selection, the page refreshes and all of the fields turn blank, except for the second drop down box, which displays the correct records based on what was chosen in the first box in the entire form. Also the first drop down box returns to the first record in the list.

View Replies View Related

Dependent List Boxes

i am trying to link list boxes for a mini intranet. I have created a booking database for our staff to add bookings into for a business and it is all based around dates etc. I want people to be able to select the year in the first box and then in the next list select the month and then the date.

Can you give me a sample code on how to link the lists so that they are dependent? i can get single drop down lists just cant link them.

View Replies View Related

Dependent Form Fields

I'm working on a form where if a client makes an entry in one field, it causes another field to become unusable. The fields most likely will be drop-down lists. The form will be filled out online then mailed to me using the post method.

View Replies View Related

Dynamic Dependent Dropdown Lists?

I want to have dependent dynamic dropdown lists where the person can select the state, then county, then zip code, and all 3 of these menus will be populated by a database. I have a page that Ive been working on but I just cant get it. The page I am working on also refreshes when you select the state, then when you select the county it refreshes again but instead of populating the zipcode list it just takes the state name and inserts it into the city menu. Code:

View Replies View Related

ASP/JavaScript Dependent Dropdown Menus??

i'm trying to create a dependent dropdown menu based on two objects, packages and steps (the steps dropdown will be dynamically updated/populated when a package is selected). the site uses ASP and since ASP is server-side, i am using JavaScript to handle the client-side "dynamic" change.

i've found several snippets of code that create the dependent dropdown; however, the two examples i have use arrays which are statically defined. the data that will populate the dropdowns is coming from a SQL database, and that data will be updated/changed fairly often. my question is this: is there any way to generate the arrays using ASP (outside javascript tags) and use them in the javascript?

or is there a way to use javascript to generate the correct arrays and fill them with data from my SQL tables? can i use a recordset ojbect in javascript? i have heard that you may use PHP inside javascript tags, but i'm unsure if that is what i want to do.. especially since i am using ASP as the main language for this site. Code:

View Replies View Related

Multiple List Boxes Dependent

I am working on a survey form. I need to create multiple-multiple dependent istboxes...I need to allow the user to make multiple selection from a categoryListbox and as the user select from categoryListbox must display and add available subcategories into the subCategoryListbox and allow to select multiple subcategoris.

View Replies View Related

Dynamic Dependent Dropdown Menu

i have three dependent dropdown list.when select city in first box then 2nd list will show all company for selected city. 3rd will show all jobs of co. any suggestion?

View Replies View Related

Server Side Dependent Drop Down

I am trying to create a drop down list that I have populated. But what I want to do is to populated the other drop down based on the selection in the first one, I am getting an error when I try to make the selection. here is the error that I recieved

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '='.

/reportrequest/admin/ReportRequest.asp, line 233


and here is my code:

View Replies View Related

Dependent Queries In Access And Entry Date

I have a created a cost reporting system which shows a level-breakdown
report. There are three levels in the report the lowest level holds the cost
items that are entered by the user these records also have an Entry Date.
The level above that is a Sum of the lowest level and the top level is the
Sum of the second level. I created the solution using three queries in
Access. I then use the queries in ASP to generate the report. But now I need
to use the Entry Date at the lowest level to re-generate the report with
values from the StartDate to the EntryDate (which is entered by the user).

Question is, can I do this using the construction I use, or do I have to
pull my queries to the ASP code and include the dynamic EntryDate? How do I
solve this?

View Replies View Related

Locale-dependent Date&Time Input Via HTML Forms -

In our legacy asp/web-application, we have
date/time-input form in USA style
(i.e. mm/dd/yyyy and 12hour-scale time with AM/PM).
There is also some validation code on client side,
and then submitted data are used in MSSQL queries.

Now I would like to know about how to generate locale-dependent
HTML form layout, and what ready-made ASP code could I borrow
for this task.

View Replies View Related

ASP _ Listbox

Is it possible to change the selected default option in a listbox on the 2nd page to the option selected in a listbox on the 1st page which ..i.e preventing the selected option from changing to the default option on the 2nd page (both the list boxes have the same value)...i am having a listbox which gets populated from a database using ASP.

View Replies View Related

Listbox With Two Columns?

I want to make a listbox which will show the results of two fields (the ID and the Name) of one table , but the one field (ID) will be the one to pass.

View Replies View Related

Value From Listbox In Hyperlink

Rather than doing this:

<A HREF="editpatient.asp?ID=1>View</A>

Can i do something like this instead? - and make it work

<A href="EDITPATIENT.asp?ID=" & LISTBOXPATIENT & ">View</A>

where LISTBOXPATIENT refers to a database populated listbox

The idea being that when the user is completing a form they can look up additional data on a patient by clicking the hyperlink next to the listbox.

View Replies View Related

Listbox Size

I have a drop-down with 40 option values and only one option should be selected of the 40 options. The list size should be 1.

When I click on the list, it drops down 30 options (a very long list) with a scrollbar for the last 10 options.

Is there any way, when I click on the list it drops down only 5 options (as if the list is of size 5) and allow a scrollbar to browse the remaining 35 options.

Code is:
<select name="deplist" id="deplist"
<option value="Commerce">Commerce</option>
<option value="Instru">Instrumentation</option>
... similar such 38 options
</select>

View Replies View Related

Listbox Width

I have 6 list boxes and it may or may not have data from db to get fill in.
so what happens is whatever has data that comes to the size of the maximum length of the data in that list box and others comes as very small width as there are no data.
but what i want is all list boxes width should be of moderate size.
how can i make those empty list boxes appear as moderate size.
I dont have an option to put an default item in the db to load with that

View Replies View Related

Listbox Selections

Does anyone know how to make a form take you to different pages depending on what is selected from a list box ? im using asp /sql / and dreamweaver ..

View Replies View Related

Populate Listbox

Im new to asp and I'm having trouble with listboxes.
I have two listboxes, the first is populated from a database and I need to fill a second listbox with items from the database that are dependant on what was selected in the first list box.

View Replies View Related







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