Multiple Select Options At The Same Page

I m trying to use multiple option menu using redirect function in ASP.

I managed to do a single option but I need to use multiple options can you please advise on how to do this, so both options apear in the same page. for instance, in the code below a user should be able to select uk and also selects between the other options; population, geography from the same page. Code:

View Replies


ADVERTISEMENT

Javascript, ASP & HTML Select Object - Duplicate Options

I have an ASP page that uses VB as the language. It accesses my database via RedBack objects and methods. Here's the snafu I've encountered today -

I have a form defined (in HTML). I populate all of the fields within the form with values from the database (the records will always have data when this form displays). I use a for next to loop through the records (with multivalued fields). Here is a piece of the code:

View Replies View Related

Validate Form With Multiple Payment Options...

I have a form where the user has 2 payment options. Is there a way to add validation to the form to ensure that at least one payment method is selected? This form does not actually process the payment, just sends the information to the recipient.

View Replies View Related

Multiple Select After Validation

I have a fairly simple problem that I can't find a straightforward solution to. It is a form which is checked server side using ASP to make sure certain fields are valid and then re-outputs the form if it fails with the fields already filled in, including multiple select boxes. The solution using PHP would be: Code:

View Replies View Related

Repopuate A Multiple Select

I am trying to repopulate a multiple select box in a webpage from a recordset.

Say I have the following recordset.

sSQL = "select geoID from table1 where srID = 3"
set adoRS = adoConn.Execute(sSQL)

Lets assume that it returns three records with geoID = 1, 2, 5

Lets say I am building a multiple select as follows: Code:

View Replies View Related

Select Multiple Distincts

Is it possible to query a database base on 2 distinct fields

I have tried this, but it did not work My Query:

SELECT DISTINCT rDateTime, DISTINCT rSessionID FROM TBL_RESPONSES WHERE rsID=" & iSID & " AND ruID=" & iUID

the error i got is: Code:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'DISTINCT'.

View Replies View Related

Select Multiple Data

Currently I have a combo box that shows records from a Select query using Group By. So it only shows each record type once. I can currently search for records using the combo box but I want to search for multiple records in the combo box.

For example, if in the combo box it shows records: Adam, Bob, Carl,,,etc.. Right now if I click on Adam, the search will bring up all of the Adams. What I want to be able to do is to be able to click on multiple records such as Adam and Carl and have all of the Adam and Carls show up.

View Replies View Related

Reading Multiple Select

I use a multiple select in a form in an asp page. When I go to the target page, I want to be able to read out the items selected on the previous page. How can I do that?

<form method="post" action="compare1.asp" name="Compare">

<select name="motorcycle" multiple size="20">

<%While not RSItems.eof%>
<option
value="<%=RSItems("ID")%>"><%=RSItems("Brand")%>&nbsp;<%=RSItems("Type")%>
<%
RSItems.movenext
wend
%>

</select>
</form>

How can I read out the items selected?

View Replies View Related

Select Multiple Option Not Working

I have a form search page with many field options but this one field I would like to select multiple options.

I have this on the search screen for my multiple field where I pull the list of options from my database: Code:

View Replies View Related

Submit Items From Select Multiple

I want to submit items from <select multiple> list into database.Should I use arrays?

View Replies View Related

Select Multiple Items From A Dropdown

I want an ASP page with a dropdown and a simple button. Every time the user
chooses an item from the dropdown and clicks on the button i want that value
written below in list and allow user to select more.

Also how can these choices be saved somehow so tha when the user goes to the
next page the choices he made can be written to the database. For example

The choices in the dropdown may be:

London
Dublin
Paris
New York

When the user chooses Dublin I want ti written below the dropdown. Then when
he chooses New York. I want it added to london. so that it displays

Dublin
London

Then when he click next button these two choices are taken over to the next
page where an insert query can be used to insert them into the db.

View Replies View Related

Select Different Fields In Multiple Tables

I have 4 tables first table category (category_id and category name in it)
second table artist (artist_id, category_id, artistname in it)
third table album (id, artist_id, album_title in it)
forth table song (id, album_id, title in it)

I'm selecting category in first page
I'm selecting artist in second page
I'm selecting album in third page

I'm requesting, collecting and posting all id's to the next page.

this is the question!!

How can I read from database

1- category name when I was selected in first page
2- artist name when I was selected in second page
3- album name when I was selected in third page

View Replies View Related

Multiple Select In Dropdown List Box

How to make multiple select in dropdown list box using asp and access.

View Replies View Related

ResultSet For Multiple Select Lists

I am populating a SELECT list from a result set. I need the same result set to populate a second SELECT list. Only one list is being populated. How can I get this to populate both? Here is my code:

<select name="options" size=10 multiple="multiple">
<% while (!rs.EOF) { %>
<option value="<%=(rs.Fields.Item("FIELD1").Value)%>">
<%=(rs.Fields.Item("FIELD1").Value)%>
</option>
<% rs.MoveNext(); }
if (rs.CursorType > 0) {
if (!rs.BOF) rs.MoveFirst();
} else {
rs.Requery();
}
%>
</select>

View Replies View Related

How To Submit All Items From A Multiple Select Control

I have a form with two multiple select control (I named the first as cbo_source and the second as cbo_target). Once the form is loaded, the cbo_source loads all items from an MS Access database. Once i click the button >>, all the selected fields from the cbo_source should be transferred on the cbo_target control.

Well, I'm done with that using javascript, my problem is how am i going to get all the items from the cbo_target control once i submitted the form to an asp page(add_new_sched.asp)? I can only get items that are selected on the cbo_target, but what i need is to get all items from the cbo_target regardless if it's selected or not. Code:

View Replies View Related

Split Function And Multiple Select Drop Down

I have a multiple select drop down. It will load into it the following information: Student ID, Last Name, First Name

There will be another drop down box that loads with classes, only this is not a multiple select.

I need the user to be able to select all students they need from the first drop down and then select the class they want to insert them into. Then, when they hit the button, it will break up the data from the first, Student ID, Last Name, First Name and insert those three things into the database under those respective column names.

Does anybody know how I can split these up properly when there will be multiple students selected, or does anybody have a better way of doing this?

View Replies View Related

Select Database Then Multiple Tables For Updates

What I want to do I select one database and the set the Rs1, rs2 etc.. like in Vb6 I would set DB then:

Set rs1 = db1.OpenRecordSet("Table1")
Set rs2 = db1.OpenRecordSet("Table2")

etc...

However how do I do this in asp3? Code:

View Replies View Related

Create SQL String With Multiple Select Boxes

I am working with an ASP app that creates reports based on data in an SQL Server 200 database. There is a web form with select boxes for the user to select their criteria, and based on that an SQL SELECT statement is generated.

One of the requirements is that some fields need to be multiple selections. The output of these fields are in CSV format (One, Two, Three). These values are all alphanumeric, NOT just numeric....

View Replies View Related

Selecting Multiple Tables Using SELECT Statment Problem

I am Trying to use the SQL SELECT Statment to open records from multiple tables into one recordset.

I know the basic syntax of the Select statment but I wanted to know if its possible to recive the table name from the feild or the record that I am readinf from the recordset in any given moment.

To make things more clear, my example:

-Open a connection

SQL = "SELECT * FROM TABLE1,TABLE2 WHERE TABLE1.UserID=" & uid & " And TABLE2.UserID=" & uid

rs.open sql,conn,3,3

while not rs.EOF

-read from record

rs.movenext
wend
rs.close
conn.close

now, in the part that I read from the record, is their any way I can know if that record is from table1 or table2?

View Replies View Related

Freeaspupload: Retrieving Multiple Values From A Select Field

I'm having problems retrieving all the values from a multiple selection field using the freeaspupload component.

I'm creating an online email app that uses the freeaspupload to add attachement functionality, which means the form encoding type is multipart/form-data. I've done something similar with the persits aspupload component, and had no problems with that, but the freeaspupload version seems to handle <select> fields slightly differently. Code:

View Replies View Related

Populate 2nd Select W/o Reloading Page

I've been searching the forums for a bit of code (maybe Javascript) that will help me populate a select list using a variable pulled from another select list without refreshing the entire page.

I need to pull the values in the second select list from a database based on search criteria from the first select list. I don't know how to get past the stateless nature of HTML. I'm developing this app using javascript and php for extremely low-bandwidth users and I'm stumped on this one.

View Replies View Related

Update Page Display With <select> Box?

Is it possible using ASP to update the page display by selecting a record from a <select> box, then, search the db for the record selected and update the same page with the content of that record? Code:

View Replies View Related

How To Open A Popup Window Select A Value And Send It Back To Page?

I'm need to open a popup window from an asp page that calculates a value. This value must be returned to the input box on the asp page. I have managed to get the popup window to open and display a value so far but I am not getting the value back into the asp page.

Popup Window code...

View Replies View Related

Multiple Query On One Page

I have created a database request page (wahooo - new to asp and it works)
and everything is great. Now I'm creating a second page and want to know if
I'm able to make two different queries on one page. I want to be able to
create one query that uses a Request.QueryString from a URL and then use one
of the returned values from that query to create another query on the same
page. I hope that make sense. Here is the database connection code:

View Replies View Related

Multiple Page Report

i was wondering how to go about making a multiple page reports. i am really clue less.

View Replies View Related

Multiple Connections On One Page?

If you are going to be making multiple calls to the same database from a single page, should you connect/close, connect/close, connect/close....or just connect once at the beginning of the page and close at the end?

View Replies View Related

Multiple Page Survey

i'm thinking about making a muti page survey and was looking for some input on the best way to go about it. example

i want 3 questions on the first page, the user answers then hits next the next questions load and so on. what would be the best way of programming this?

View Replies View Related

Multiple Page Values

i want to submit 30 field(textbox,combo etc.) data into database.if i take all 30 fields on same asp page or form,the page will not look good, so i want to break that into 3 pages,each page will having only 10 fields.when all required fields on first page will be filled by the user then he will click on next button,so he will see next page , i.e. page no. 2,same for page 3.

if he want to come on previous page for editing some info,it should be possible.on 3rd page there is submit button,when he clicks on submit all the info will stored into table. can anyone tell me is it possible using ASP 3.0? if it is possible then tell me how to do this?

View Replies View Related

Multiple Graphics....One Page

Im basically making a site that will have a homepage with links I will add everyday to graphics and movies on my server. When you click the link it will open a new page similiar to the homepage with the graphic/movie in the middle of hte page.

I know there's an easy way to do this so i can just have it call a database or something like that. Basically I want to just have to add a link to the home page describing what it is, then and add the link to the file to the database and have the coding do everything for me. I think this is asp.

Can someone clue me in. All the sites i've built up until now have hundreds of pages all consisting of the same thing and it's such a pain to keep duplicating code. I'm not looking to get too advanced. If I don't have to use an access database, i don't want to.

View Replies View Related

Inserting Into Multiple Tables From ASP Page.

I've been building an ASP app that sits on top of a relational database (MS Access). The problem is that the data from some web forms need to be stored in different tables. Currently I am using multiple SQL Insert statements.

The problem with this approach is that it is possible that several inserts would succeed and then one would fail. This would ruin my database. Is there some way to synchronize the Insert commands or to "flush" the commands at the same time? I need the Insert statements to either all succeed or all fail.

View Replies View Related

Multiple ASP Modules Not Working On Web Page

I currently have designed a web page and inserted some ASP modules into it. But, if I insert more than one ASP module I receive an "Internal Server Error". If I delete the second ASP module the page works perfectly. So, my questions is this. Can you only insert one ASP module per web page? Where is the problem. Code:

View Replies View Related

My Options

i thought id post it and see what more experienced people think. With firefox now the browser of choice with people in the know their lack of VBScript support is causing me problems. If i want to say validate my forms i must now do it on the server-side (which is probably safer anyways). But things like pop-up warnings ??? or if i want to perform _OnLoad, _OnClick, _OnChange events , what do i do ?? or more to the point what are my options if any. What is the general opinion on using VBScript with ASP pages.

View Replies View Related

Linking Multiple Css Files To A Master Page

We have a master page set up and it is tied to its css file through the standard method in the <head> tag. What I would like to do though is from another page inheriting the master page to add another link to a css file.

That way i can have the sites global file used to make the general apperance consistent, then make the internal content more flexible without destroying the current css file.

Is this a possible task? When i went into the main master page and tried to add a <asp:contentplaceholder id="additionCSS" runat="server" /> tag to the head. When this is done visual studio alerts me saying it doesn't recognize the tag 'asp'. Is there a way around this? We are only just rewriting the site to use master pages now so I'm still figuring it out.

View Replies View Related







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