Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Pasing a value from one ASP to ASP

Posted on 1999-01-26
4
Medium Priority
?
216 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 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

636 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