Multiple Querystring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Deepiceman

    Multiple Querystring

    Hi all,

    Here's a newbie question for you all. I have a page lets call it
    main.asp On this page there are 2 links both pointing to the same page
    but sends different querystrings. for example



    On the new.asp page I have a couple functions that are being called
    depending on the querystring being passed. if "id" is found go fetch
    the results from a database. if "state" is found check the case
    statements. if no querystring then go to the default function. (all in
    the same page)

    Here is my if else code but I am not sure what I am doing wrong since
    it keeps trying to find a "End" somewhere in the code.

    -------------------------------
    If (Request.QueryS tring("ID") <> "") Then
    callpara = Request.QuerySt ring("ID")
    display()
    Else if (Request.QueryS tring("State") <> "") Then
    statereq = Request.QuerySt ring("State") 'statereq --- State
    requested
    select case statereq
    case "AZ"
    azreq()
    case "AK"
    akreq()
    case "WA"
    wareq()
    end select 'more states will follow but not more than 10
    Else
    normal()
    End if
    -------------------------------

    Now I know the if-else has to end and then I have to start a new
    if-else but thats where I am going wrong. Any ideas as to how to make
    this simple, and most of all make it work?

    Thanks in advance
    Deep.
  • Guinness Mann

    #2
    Re: Multiple Querystring

    In article <f07dfae.031007 1234.35d37b39@p osting.google.c om>,
    deepiceman@yaho o.com says...[color=blue]
    > Else if (Request.QueryS tring("State") <> "") Then[/color]

    ElseIf, not Else If

    -- Rick


    --
    Who's better for furniture? NOOOOOOOOOOOOOO OOOOBODY!!!!
    Guinness Mann
    GMann@Dublin.co m

    Comment

    Working...