(newbie) expected 'end' error

B

Barton

What's wrong with this code?
I'm getting an "expected 'end'" error, but all IFs are closed!


<%
Dim iid
Dim pid
Dim engid
Dim check
Dim lang2
Dim ttsurl
Dim url2
Dim pagename

iid = Request.QueryString("iid")
pid = Request.QueryString("pid")
engid = Request.QueryString("engid")
check = Request.QueryString("check")
lang2 = Request.QueryString("lang")

ttsurl = "http://sales.teleticketservice.com/gva/proc?action=link"
url2 = "http://www.goformusic.be"

If iid<>"" AND pid<>"" AND engid<>"" AND check<>"" Then
pagename = ttsurl & "&iid=" & iid & "&pid=" & pid & "&engid=" &
engid & "&url=" & url2 & "&check=" & check & "&lang=" & lang2
Else
pagename = "error.html"
End If

If lang2="DUT" OR lang2="dut" OR lang2="NL" OR lang2="nl" Then
left="column_left_nl.html"
top ="top_nl.html"

Else if lang2="FRE" OR lang2="fre" OR lang2="FR" OR lang2="fr"
Then
left="column_left_fr.html"
top ="top_fr.html"

Else if lang2="ENG" OR lang2="eng" Then
left="column_left_eng.html"
top ="top_eng.html"

End If
%>
 
C

Craig Deelsnyder

isn't it ElseIf (one word)?

btw, that's an old ASP question, not ASP.NET....I highly suggest
upgrading...
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top