I have created a form that asks the user to select an item within a drop down list, once they have selected the item i would like it to populate one of the other fields with a code depending on which item was selected within the drop down list. How would i do this?
I am using what seems to be a fairly simple calendar program that is ASP. I have been successful in adding fields to this App, but for some reason, I must be missing something because when I go into the program to edit an entry, one of the value's (Location) doesn't populate properly.
It pulls up the LAST option (Other) within that dropdown field, instead of the one that had previously been selected. I'm not sure what I've missed, but could someone help? Here is a portion of the code: (let me know if you need additional info). Code:
I am trying to retrieve the last value in my table in the ID column and auto input it in a field in my form when I open the form page (form.asp). This is what I have but it is obviously not working. ? <% dim Rs, SQL, conn, ID
Set rs=Server.CreateObject("adodb.recordset") SQL = "SELECT TOP 1 ID FROM Table1 ORDER BY ID DESC" Rs.Open strSQL, conn ID = Rs.fields("ID") end if %>
I'm brand new to this forum AND learning ASP via problem-based learning (not the easiest or sound way to do so, I know).
In any case, I have a form that uploads an image to my server. It does so via a form action to a new asp page. The new page has a link back to the original page. On the original page, I want the name of the file to appear in a text field e.g. Code:
We have an ASP site that hits up an Access database of categories of products and products. (e.g. Categories = Napkins, Tablecloths; Products = 20x20 Napkins, 21x21 Napkins, 54x54 Tablecloths, 60x60 Tablecloths)
We currently have select boxes that when you select a category, it populates the next select box with the proper list of products (i.e. I select Napkins as a category, I get a listing of the Napkins)
We would like to put a clickable link before each of these select boxes that would pull up a pop up with links from the records from the proper table.
(e.g. I click the categories link and a popup with html anchor tags of Napkins and Tablecloths appear) I click on the Napkins anchor and it populates the Categories Select box with Categories and Napkins being selected.
I want my asp code(recordset) to populate a table structure like below...How will I do that ? I have the corresponding day(monday,tuesday,etc) stored in my db...This is a weekly schedule for all drivers..A sample db table output would be : Code:
The user selects from several dropdown boxes, on different pages assessing different faults with a particular job. Finally it comes to the last page and displays all the various bits and pieces that have been selected along the way,
THE PROBLEM, ERR CHALLENGE....
It also needs to populate an email link to display the info selected and then which is emailed to an administrator for approval.
I have a form with a select control called "Last Name" and 1 text box called " First Name". In the select drop-down I have a list of last names pulled from the database. Also the second text box first_name value will be pulled from the database also. When a user selects a last name from the list I want it to automatically update the first name textbox based on their selection. Ie. The persons first name is put into the textbox.I need to take the values of both(First Name and Last name) and send them to another page
I have an ASP web form that I want to populate fields based on the first field choice. Example I have 4 fields item, price, delivery, availability. I have all these items setup in an access table. When a user chooses an option from the item drop down, the price, delivery, availability will then populate. I have already made my connection to the database, and created the drop down for field one from the choices. How do I now populate the corresponding fields.
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.
I've been hunting around the forums for ages trying to find a solution to this but no joy so far, hopefully someone can help? Basically I'm a bit of a newbie to session variables, and was wondering if they are they best thing to use for the following problem I have; What I want to do is capture a referral ID from a URL i.e. www.mysite.com?ref=1234567 and then store it in a session variable and if the person signs up for a service, it automatically places the referral ID in a text box on the order form. Does anyone know if this is possible or know of any tutorials? I've had a good look on google, but no joy so far. I think the key bit is how I capture the ID into a session variable?
Which of the method is used. ? Writing an SQL statement in ASP to populate a recordset OR Calling a stored procedure to return records to populate a recordset. Which of the above two methods is more useful and faster.
i have learned how to populate a webpage with images from a database. however, i would like to go a little deeper:
i would like to create a recordset (in dreamweaver) with a drop-down list of my product lines:
product line A product line B etc etc
this is not a problem. i can do this. however, once the user has selected from the list, i would like the corresponding images to be displayed in the webpage. i am not sure how to go about this. tips for doing this in dreamweaver would be excellent.
I have two form items listbox 1 and textarea 2 and a button. I populate the listbox 1 with a SQL query. i want to add the following functionality:
i choose something from the listbox push the button and then the selected item must appear in the textarea( or listbox ) when i choose a second item from the listbox it must appear beneath the first choosen item etc.
When the app is ran you get a list of checkboxes to choose from which passes values to crystal reports. All I need to do is change those checkboxs to dropdowns. Can someone give me some assistance here?? Code:
I have a drop down menu that is populated from a database. the problem that I have is that alot of the numbers in the field are duplicated ie the field in question has years in it and may of the years are the same.
is it possible, when there are duplicated years, to populate the dropdown menu only once with that particular year. This would grately shorten the menu for me.
I am trying to populate a dropdown box with 2 date variables called today date and tomdate. First it will show "-choose-", followed by todays's date and then tomorrow's date.
The selected date needs to be validated by my hidden function called Validate. This I can do, but I can't figure out the syntax for the dates. Following is another dropdown box which you can make the changes to so I can see the proper syntax.....
I have an array - ListOfFiles - that i want use to populate an combo.
I've attempted to do it like this:
<select name="txtAvailable" rows="4" id="txtAvailable"> <Script Language = "vbscript" Runat = "Server"> For i = 0 to Count -1 Response.Write"<OPTION>" & ListOfFiles(i) & "</OPTION>" next </script></select>
I placed the vbscript in the approprate place in the body. But when i open the page instead of writing the HTML where i placed the code, it has appended it right at the bottom of the page. Does anyone know where i'm going wrong or if there's a better way of doing this?
i used sql code above to display data in a table. basically, the flow is like this. when there is a new reservation, a staff will be assigned to handle that reservation from the beginning until the end. before this, i just display a staffCode that retrieved from Reservation table.
then, i made changes to display staffName and removed staffCode from the table (based on requirement). but, because previously, there are some reservations that have been assigned to staff, i do not have any problem to view all data in the table.
but, when i click other reservations that have not assigned to any staff, an error page came out. the default value for staffCode in the Reservation table is null. because this null value, i've got an error page. is there any steps i can use to solve it?
I am building an online shop, i wish to select all the sizes out of a table and polutate a drop down list with the selection, then dependant on what size you selected it offers the quality available in another dropdown list based on the amount recovered from the database relating to that size.
I know this can be done is javascipt, but have no idea what to search google for, nor where to start, any ideas would be good .
In a form (to add a new product to Table2) I need to populate a dropdown with the CatName. So far so good. Now, I will go to have special categories with just one product. When that happens the ProdCat value is '1' (that means that the category is not going to have any more products).
So when populating the dropdown with CatName in those cases where ProdCat is equal to '1' I don't want the corresponding category being showed in the dropdown. How to do this? I have the following code but I know it's not correct and maybe I'm completely out of track: Code:
I'm trying to populate a dropdown box with the results of a query. There is current code that does this but it populates with team name whereas I want division name.
The database is set up as:
League - connected to - Division - connected to Team
I want to be able to have someone choose a league and then on the next page populate a dropdown with all the divisions in that league.
I have a small problem using SSJS, I have an ASP web form that populates an XML form, I then want to Select a field with the id="group" from the XML file and write it into a SELECT Field of another WEB Form but I am having Problem,
I taught I had this conquered when I had the form as HTML as follows:
i am in desperate need of help with ASP and populating an optgroup dropdown box.I have one table which has 3 fields within a SQL Database, the first is ID numbers, the second is Country and the third is City (within that Country)Eg: I have 1; United Kingdom; London.
What I am trying to do is have an “optgroup” dropdown box with the Countries as the optGroup label and the cities related to each country under that optGroup. I want to populate the dropdown box with this data, preferably in alphabetical order of city. Is there a way to do this in ASP?