?
Solved

Pasing a value from one ASP to ASP

Posted on 1999-01-26
4
Medium Priority
?
218 Views
Last Modified: 2010-04-09
I have a dropdown menu. When the user selects from the menu(ie OnChange) I should open a new page and to that page I have to pass a string. I need a detailed Explaination with code
I've tried in the following way but I am getting a compilation error
<select name="Alphabet" OnChange='Location.href="xxx.htms"?Alphabet=<%=this.options[this.options.SelectedIndex].value%>'">
Note I am trying with out the "post" or "get"

0
Comment
Question by:jimevans
  • 3
4 Comments
 

Author Comment

by:jimevans
ID: 1845710
I've tried in the following way but I am getting a compilation error
<select name="Alphabet" OnChange='Location.href="xxx.htms"?Alphabet=<%=this.options[this.options.SelectedIndex].value%>'">
Note I am trying with out the "post" or "get"
0
 

Author Comment

by:jimevans
ID: 1845711
Edited text of question
0
 

Accepted Solution

by:
DavidME earned 60 total points
ID: 1845712
I think that you are mixing levels. You want that the client go to a page according to a selection on the client. But you are including ASP code in that client part. Try:

<select name="Alphabet" OnChange='Location.href="xxx.htms?Alphabet="+this.options[this.options.SelectedIndex].value'">

All JavaScript in the client. I am constructing a string from "xxx.htms?Alphabet=" and the selected option and assigning it to location.href.

0
 

Author Comment

by:jimevans
ID: 1845713
Thanks
Any way you are late and I've found the way of my own.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question