Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Multiple Querystring

Reply
Thread Tools

Multiple Querystring

 
 
Deepiceman
Guest
Posts: n/a
 
      10-07-2003
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.
 
Reply With Quote
 
 
 
 
Guinness Mann
Guest
Posts: n/a
 
      10-07-2003
In article <(E-Mail Removed)> ,
http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> Else if (Request.QueryString("State") <> "") Then


ElseIf, not Else If

-- Rick


--
Who's better for furniture? NOOOOOOOOOOOOOOOOOOBODY!!!!
Guinness Mann
(E-Mail Removed)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mail.Attachments (Multiple Attachments) from Querystring codewarrior ASP .Net 0 05-04-2009 07:19 PM
How to get value of QueryString inside QueryString Mehdi ASP .Net 6 04-06-2006 03:41 PM
Passing QueryString URL as a paremeter in QueryString Adeel Ahmad ASP General 1 03-07-2006 02:05 PM
Pass multiple parameters into page's querystring property from jscript moondaddy ASP .Net 1 02-28-2004 07:24 PM
Multiple elements within a datagrid querystring Carl Howarth ASP .Net 1 07-24-2003 11:33 AM



Advertisments