Multiple Querystring

D

Deepiceman

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
http://localhost/new.asp?id=2
http://localhost/new.asp?state=ca

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.QueryString("ID") <> "") Then
callpara = Request.QueryString("ID")
display()
Else if (Request.QueryString("State") <> "") Then
statereq = Request.QueryString("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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Check Querystring 4
Can't execute php to delete multiple rows in database 3
QueryString value 0
Querystring question 2
Session Querystring 0
Timing problem 4
Search Results with Pagination 0
QueryString to Textbox 0

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top