Solved

Pasing a value from one ASP to ASP

Posted on 1999-01-26
4
179 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 20 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now