SELECT List Re-ordered
I need a piece of ASP code which will output the values in a select box no matter what their order. This is for re-arranging items in the database.
I have a page which displays al relevant rows from the database in a select box with a javascript function to move the items up and down in the box.
However, I then need an ASP output of the order of the box. Currently, when i request.form("ord"), I get the values "1,12,36,37,[etc]" but only in the order they are in when the first page loads. It does not re-arrange the items if they have been re-arranged using the javascript function.
View Replies
ADVERTISEMENT
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.
<LABEL for="MyList"></LABEL>
<SELECT id="MyList" name="MyList">
<%For icount=0 To intmyCount%>
<OPTION
<%if Trim(arrmyType(icount,0)) =strmytype Then%>
SELECTED
<%end if%>
VALUE="<%=Trim(arrmyType(icount,0))%>"><%=Trim(arrmyType(intCtr,1))%>
<%Next%>
View Replies
View Related
What i would like to be able to do is have two listboxes side by side, one will have all of the main categories and the second will have all of the sub categories in it.
I populate the first list by using this code:
<option value= "<% = rs("cat_id") %>"><% = rs("cat_name") %></option>
Now what i would like to do is when the user double clicks say the second item on the list, the listbox next to it will display all of the items that are under the main category they just double clicked on
View Replies
View Related
I have created a webpage with a form written in javascript for a user to enter information. Part of this form requires the user to type in information and then add it to a list, which is of the type <SELECT>. When the user submits the form, I want all the entries in the SELECT list to be entered into the database. If I use the command Request.Form("name"), where "name" is the name of the SELECT field, only the selected entry is retreived. I need to retreive all entries in the list. Does anyone know how I can do this?
View Replies
View Related
I have a string that was populated from a listbox. Now I want to bring up the record again for edit and want the listbox to have those records selected ONLY. I am close I think. Currently, it selects all records.
<%
HearingIssues = RS3(0)
HI = Split(HearingIssues, ",", -1, 1)
For i = 0 to ubound(HI,1)
sString = Instr(HearingIssues,HI(I))
if sString = 0 then
%>
<option value="<%= HI(I)%>"><%=HI(I) %></option>
<% else %>
<option value="<%= HI(I)%>" selected><%= HI(I) %></option>
<% end if
next
View Replies
View Related
I have an old application ( pre-VB5) that I need to add a select/option list to. This is an edit program so the values for the form will be retrieved from a database. How do I set the value of the dropdown with the value from the database. The value in the database is either new, trial, maint., employee, beta, or null. I need to set the dropdrown to one of these values. An example of the select;
<td>
<select name="ordReason">
<option></option>
<option value="New">New</option>
<option value="Maint.">Maint.</option>
<option value="Trial">Trial</option>
<option value="Employee">Employee</option>
<option value="Beta">Beta</option>
</select>
</td>
View Replies
View Related
I have two list boxes . User can select multiple values from the lists. Is there a way I can force that the user can select from only one of the list boxes? Can I associate the radio button with the list so that as soon as user selects the radio button the other list box turns grey(not letting the user to select anything from that list).?
View Replies
View Related
I have the following list
<SELECT NAME="">
<OPTION VALUE="">Series C</OPTION>
<OPTION VALUE="">Series M</OPTION>
<OPTION VALUE="">Series F </OPTION>
<OPTION VALUE="">Screwjack</OPTION>
<OPTION VALUE="">Roloid Gear </OPTION>
</SELECT>
However i want to change the font size and typw within the list is there a way to style the font inside such a list?
View Replies
View Related
How to make multiple select in dropdown list box using asp and access.
View Replies
View Related
I created 3 select lists :
One is a dropdown style that has options in it like : location,date,usage
Second one is a select list that I filled with value from a vbscript that get all groups on my domain.
Third one is a list that gets automatically generated when user select an option from the first one I also got 2 input button that allows the user to move item from list 2 to list 3.
Now here's the deal I want a way, maybe a button, that would circle around all the options in list3 and insert each of them in my DB. Code:
View Replies
View Related
I would like to know if it is possible to fill in an access table through a select list inside an APS 3 web page. If yes, how ?
View Replies
View Related
I would like to use ASP to populate a select list from a comma delimited txt file.....
View Replies
View Related
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:
View Replies
View Related
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?
View Replies
View Related
I have written some code which should dynamically build a table which is then populated with questionas and possible answers. The format of the answers will vary ie they may be in the form of a radio button which will be rated from 1-5, checkbox or a selectbox.
The first problem I have is if I do not comment out <select></select> I get an error message saying the page can not be found. when I do take it out I get asp timeout. Code:
View Replies
View Related
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>
<input type="button" name="selectall" value"select All" onclick="javascript:selectall(listboxname)")
View Replies
View Related
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
View Replies
View Related
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:
View Replies
View Related
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)
something like:
picname1 = john1.jpg
picdir1 = male/
picname2 = sally.jpg
picdir2 = female/
View Replies
View Related
I have a webpage with a list box. I wish to populate it with values from my database when the page loads, these values are just the primary key.
View Replies
View Related
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 ?
View Replies
View Related
Does anyone know how to tell which items in a multiple-select listbox are selected?
View Replies
View Related
does anyone know what I have wrong with this select in my form?
<%
sql = "SELECT * FROM [LTAB_CAProcessArea]"
Set ProcessAreaRS = Server.CreateObject("ADODB.Recordset")
ProcessAreaRS.Open sql, SessionCPRDBConnection, adOpenStatic, adLockOptimistic, adCmdText
%>
<select name="processarea">
<%
Do While Not ProcessAreaRS.EOF
Resonse.Write("<option name='" & ProcessAreaRS("processareaID") & "'>")
Response.Write(ProcessAreaRS("txtProcessArea"))
Response.Write("</option>")
View Replies
View Related
I don't know if this is in the right section. I hope it is.I have an HTML document that uses tables and stuff. I also have a FORM on there with some input boxes, Radio buttons and <select> options.
I have a .asp VB file also that processes the actual form and writes the answered questions to a text file on the server (tab separated)
My problem:
The input boxes and radio buttons work fine. It writes to the text file on the sever end.
My problem is I am not too sure how to go making the answers from the <select> options to also write to the server. They way I have it set up right now, it jsut writes "NULL" on the text file.
View Replies
View Related
I've recently come across using "Select Last" in an sql query. Does anyone have any info or views on using it? Until now I've relied on "Select Max" but Select Last would have distinct advantages when using random autonumbers. I'm also curious about why there is so little info on it - perhaps I'm looking in the wrong places?
View Replies
View Related
I want to display an editable page extract from MS Access table. Now I want to show the value in Select list, extract from another table. Both tables are joinable with the foreign key.
In simplest, I want to extract and display the exact value from a table and show in Select list for edit.
I could not think of any way. I can bring up data and display in Select list but it would display the first value in the list only.
View Replies
View Related
i want to select all ids from table1 where those id's arent in table2
Sounds simple and iam sure could be possible in a single sql statement
View Replies
View Related
I have the following SQL SELECT statement below that doesn't like the TOP 50 parameter. When I remove it, all is good. When I put it back I get "Incorrect syntax near '50'".
Code:
SELECT TOP 50 SSN, LName, FName, License_Certificate, Character_Identifier, CertificateNo, " & _
"tblIndividualInfo.IndividualID, tblLicense.LicenseID FROM tblIndividualInfo " & _
"INNER JOIN (tblLicense INNER JOIN stblLicenseType ON tblLicense.LicenseTypeID = stblLicenseType.ID) ON " & _
tblIndividualInfo.IndividualID = tblLicense.IndividualID " & strWhere & " ORDER BY LName, FName
View Replies
View Related
how to insert multiple items in a select box into a database. For example:
<select multiple name="ComservGroupAge" size="3">
<option value="Children">Children </option>
<option value="Adolescents">Adolescents </option>
<option value="Adults">Adults </option>
<option value="Does Not Matter">Does Not Matter</option>
</select>
I don't want it to go into my db column as one long field.
View Replies
View Related
for this part. can i use
select sum (orderqty) from custorder
i attach a pic file to show wat i wanted to do
a few data will be listed out
i want the total from that particular few records only. not the whole records in database
View Replies
View Related
I know this is an ASP forum but I've also gotten answers to my SQL problems here and I'd appreciate your help very much.
I have these two tables in SQL. Both tables have the same two columns (Description and SiebelName). I want to some how write a script that will look for the descriptions that matches the ones in Table1 with the ones in Table2 and if there are any I would like to take the column in Table2, SName, and update the column in Table1, SiebelName, with that of Table2.
Here's what I attempted to do but it's not working:
--------------------------------
UPDATE tbl_MasterTEST
SET tbl_MasterTEST.SiebelName = Siebel.SName WHERE (SELECT tbl_MasterTEST.ProdDesc, tbl_MasterTEST.SiebelName, Siebel.SDesc, Siebel.SName
FROM tbl_MasterTEST, Siebel
WHERE tbl_MasterTEST.ProdDesc = Siebel.SDesc)
View Replies
View Related
strSQL = "SELECT * FROM mod48 WHERE N_GEN = 5"
oRs.open strSQL,oConn,3
this table has alot of fields. I want it to automatically create alot of Text boxes for each field. But i also need the fields names. The only thing is that the field names in the table are well not very user friendly.
n_gen = General Numer
pa_name = Client Name
pa_surname = Client SurName
So i was wondering is there something i can do. Like a For each that will create alot of tect boxes for each field "with its value in it" and also make it write a description for the lable. Code:
View Replies
View Related
Ik want to select 2 MAX values form one table, but i don't know how that works, and i can't find it anywhere.
This is what i got so far:
sql = "SELECT max(tekstindex), max(volgnummer) FROM menu"
I want to select max(tekstindex) as 'tekst' and max(volgnummer) as 'volg'.
View Replies
View Related