I am using list box on one page which has 5-6 values now i want that user should able to select only one value at a time from list box ,now after selecting value when he click submit button it should direct it another asp page which also has a list box and that list box should have all values which was on previous list box on first page , i m using post method.
user only able to select single value from list box on first page but second page should display all vaues in list box.
I have JavaScript that populates the lstSelected when items are clicked on from the lstAvailable list box.
When the user presses the Submit button, a 2nd ASP page actually does the insert. My problem is that I do not know how to retrieve the value from the 2nd list box (lstSelected) from the 2nd ASP page. I need to do an insert for each item in the selected list box.
I have tried using Request.Form(“lstSelected”) but that did not work. I also tried a For next loop but I could not get that to work either.
Can someone help me figure out how to loop through all values in the lstSelected list box from the 2nd ASP page?
I have multiple list box added to the asp page using <select> tag. I have added items in the list box using recrdset from Education table Education table={educationid, educationname}
User can choose more than items from the list box. These items gets added in the user table in field "edu" seprated by commas. When User wants to edit his information ...i want that the items in the list box should be automatically selected which are present in "edu" field.
I have a list box with five values in it. These are essentially account groups. The user will select one of these values and click on a button. This will update a second list with specific account names depending on what the user selected on the first list.
These account names will be retrieved from an SQL database. Below is the code which sets up the first list and the button. Code:
I know how to write cookies and how to call cookies. But how do I write the values of a drop down list and the value of a radio button list to a cookie and call them to select the correct options when the page is reloaded?
I am trying to learn and use good DHTML concepts and code (assuming they are needed). My current issue concerns how to handle this situation.
I have a Select List box which displays values based on what value is selected in a dropdown list. For example, my dropdown list contains a class name, and the Select list contains all of the students who are registered for that class.
So what I would like to occur, is when the user changes the class from the dropdown box, the Select List is re-created displaying the students who are enrolled in that class.
I thought I could do this without having to reload the page (with DHTML) but here is my problem. Code:
How can i list out all the email address into my website from the hotmail caontact list? i am successful log in into the yahoo contact list by using serverxmlhttp and list out all the email address from the page source, but i could not access to hotmail by using the serverxmlhttp. Is any other methos can list out the email address from hotmail contact list?
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this:
To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
I have a form with 3 list boxes, in the second list box i have created a select all button to enable users to select all items. but when i click select all button an error message is returned stating that "Object doesn't support this propery or method" here is my code.
<script language=javascript> function selectall(sel) { var len = sel.length; for ( var i=0; i<len; i++) { sel.options[i].selected = true; } } </script>
i have a list box with allot of values in it. How do i submit the item that is selected in the list box? ive tried a few but i cant get it working. Here is what i tried: Document.form.search.value = document.form.list1.value
in select box we can select only values...can not change that value in list itself... i wanted to give my user in edit form they can chnage the value in list itself...
any property of select box..or some codeing ? Code:
i know how to get a listing of files in a specific directory, but i want to get a list of all files in all subdirectories of a specific directory (not virtual). on my server i have e:picturesweb.
in this folder there is male and female directories and in those directories there are also subdirectories. i want the page to create a value for each file and directory so that it can be submitted to another page that will ftp the pictures to a remote site. (yes I have the ftp script ready to go)
I've created one list box and a button The query is: After clicking the button the action done on the same page with the values selected. How to solve this ?
Im using a drop down list for user to select their option. (For example the user selected type2) All goes fine for saving, but when I retrieve the info from database to be display on the same form on the same drop down list, it display Select Heretype2
I need to create a page which updates a products information within a record.
the tables are, products (ID,CatID,sID) supplier (sID,sName), category (CatID, CatName)
The above tables supplier and category have relationships to products by using the sID and CatID
I need to update the product details by having a select/option for a supplier and category but if not changed by the user the value already within products table stays the same, therefore the list must be dynamic so that the first item in the list is the one relating to the value in the products table. Also the value must be the ID numbers but must display the names not the ID's to the users within the select/option.
I'm sure an ASP programmer would be able to create this function within 5 minutes, but I'm just learning and I've fumbled my way through creating a little site content management system for a local community group. I'm a designer and the site looks great (so I'm told) but I just can't get this last page to work. I'm desperate for help!!!
I'm trying to call the values for a drop-down list from a seperate categories table in Access, to add/update records in a main Access table/query. The page/form is used to:
a) diplay/edit existing records; or b) add new (if cstr = "").
I have finally managed to display the correct selection in the drop-down list for existing records (not sure if code is correct?) but I can't work out how to write changes (edit record) back to the database; or 'save' a new record? I'm also not sure if I should be trying to write data to the table or query? Code:
i am selecting a field from a list .i want to show all the list after searching on the basis of that selected field from database in another list box which is on the same page.
I have a select list which get populated from com but i option value ALL is hard coded on the pageWhen any value is selcted from the list box and form is submitted pages refreshes with the value as selected in the drop down but if All is selected the page ref but All doesnot get selected.
I have a page which displays all the fields in a table of my dbase. One of the fields in the database was previously populated by a drop down box. My question is, is it possible to display the same drop down box with the value that has been populated from the table so it can be updated?
Does anyone has some sample code or know any resources for using ASP and Javascript to dynamiclly create a drop down list? (ie. Once the user selects a drop down list, ASP gets the selected value and go to database to get another set of new values. then creates a drop down list of all the new values)
I have a form page in ASP where the first menu/list function as a filter of the second menu list. Once I select an item form the first combo I get the second menu full of options. This is correct. My probem is that the first combo gets the default value again and I do not see what I did choose.
anyone know any homepage that might help me to list the data out in a page. i wanna do it like in 2pages that one is going to be the one who maintain data. another one is to list all the data out from server
I have a list box, with more than 1 peice of data in each listrow. I was wondering if its possible to align the first data to the left and the 2nd data to the right inside the list?