Quick ASP/JScript help

Discussion in 'OT Technology' started by sideshow bob, Mar 2, 2004.

  1. sideshow bob

    sideshow bob New Member

    Joined:
    Jun 30, 2003
    Messages:
    108
    Likes Received:
    0
    Three easy questions, mostly how to format code (I.E. quotes, brackets, etc)..... Links to sample code would help


    Below is my pseudocode, I need help completing it since I am not too familiar with Java and ASP. Thanks


    I have three drop downs, call them A (String) & B (Number) & C(String)

    1)
    I need help formatting my SQL statement...the one below is giving me problems

    sql = "SELECT * FROM Table where FieldA="request.form("Avalue") and fieldB="request.form("Bvalue")

    2)
    Then I need to take the value of C and send it to a function that determines A) show one asp page B) show another C) show both.

    function ShowPages() {
    if (C=option A)
    then
    document.getElementById("Page1").style.display = "block";
    else
    if (C=option B)
    then
    document.getElementById("Page2").style.display = "block";
    else
    document.getElementById("Page1").style.display = "block";
    document.getElementById("Page2").style.display = "block";


    3) And I want to display the values of the other drop downs in my table (i.e. name)
    <td> <"name"></td>
     

Share This Page