Solved

Pasing a value from one ASP to ASP

Posted on 1999-01-26
4
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

705 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