Solved

Pasing a value from one ASP to ASP

Posted on 1999-01-26
4
166 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
Comment Utility
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
Comment Utility
Edited text of question
0
 

Accepted Solution

by:
DavidME earned 20 total points
Comment Utility
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
Comment Utility
Thanks
Any way you are late and I've found the way of my own.

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 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

16 Experts available now in Live!

Get 1:1 Help Now