Advertisement

05.15.2008 at 04:31PM PDT, ID: 23407031
[x]
Attachment Details

Syntax for dropdown selected value to open a specific URL

Asked by georgehayes3 in VB Script, Programming for ASP.NET

Tags: ,

I have this Classic ASP code

<form method="POST" name="SendMe">
        <p><select name="DropIt" size="1">
        <option><% =myYearsArray(6) %></option>
        <option><% =myYearsArray(5) %></option>
        <option><% =myYearsArray(4) %></option>
        <option selected><% =myYearsArray(3) %></option>
        <option><% =myYearsArray(2) %></option>
        <option><% =myYearsArray(1) %></option>
        <option><% =myYearsArray(0) %></option>
        </select>
        <input type="button" name="B1" value="Go">
 
I need the syntax that will drive the user from http://<currentURL>  to http://<currentURL>/<selectedoption>

the selectedoption is a folder within the currentURL:  I tried the following code but it didnt work:

<SCRIPT FOR="B1" EVENT="onClick" LANGUAGE="VBScript">

           myURL= "'/" & selectedvalue = request.form("SendMe") & "/default.asp'"
           myURL= Request.Url.Host & myURL
                     navigate(myURL)
                
</SCRIPT>
Start Free Trial
[+][-]05.15.2008 at 05:27PM PDT, ID: 21578971

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 05:48PM PDT, ID: 21579045

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 05:52PM PDT, ID: 21579071

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 06:16PM PDT, ID: 21579148

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 06:31PM PDT, ID: 21579212

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:33PM PDT, ID: 21579596

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:38PM PDT, ID: 21579614

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 07:44PM PDT, ID: 21579640

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 08:40PM PDT, ID: 21579831

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 08:42PM PDT, ID: 21579839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 09:23PM PDT, ID: 21579986

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: VB Script, Programming for ASP.NET
Tags: ASP VBSCRIPT, IE6+
Sign Up Now!
Solution Provided By: ydramu
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.15.2008 at 09:28PM PDT, ID: 21580002

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628