---
title: "hjälp mig hitta felet"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/11002-hjälp-mig-hitta-felet"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "H_E_Pennypacker"
published: "2001-08-08T19:40:00.000Z"
updated: "2001-08-08T19:53:00.000Z"
replies: 3
views: 185
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/11002-hjälp-mig-hitta-felet"
---

# hjälp mig hitta felet

## #1 — H_E_Pennypacker, 2001-08-08T19:40Z

hjälp mig lite på traven här
Kod:

```
<% if Request.Querystring("typ") = drink then %>
<script language="JavaScript" type="text/javascript">
parent.frames[0].location='beige/be_meny.htm';
parent.frames[1].location='beige/be_flaska.htm';
parent.frames[2].location='beige/ol.asp?id=<% Request.Querystring("id") %>';
</script>
<% else if Request.Querystring("typ") = cider then %>
<script language="JavaScript" type="text/javascript">
parent.frames[0].location='beige/be_meny.htm';
parent.frames[1].location='beige/be_flaska.htm';
parent.frames[2].location='beige/ol.asp';
</script>
<% else if Request.Querystring("typ") = ol then %>
<script language="JavaScript" type="text/javascript">
parent.frames[0].location='beige/be_meny.htm';
parent.frames[1].location='beige/be_flaska.htm';
parent.frames[2].location='beige/ol.asp';
</script>
<% End if %>
```

får felmeddelandet:

> Microsoft VBScript compilation error '800a03f6' 
>
> Expected 'End' 
>
> /barbarnes/redirect.asp, line 19

danke

Permalänk: https://www.webforum.nu/p/11002

## #2 — ElMaco, 2001-08-08T19:48Z

Hyfsat säker på att det skall vara

```
elseif
```

och inte

```
else if
```

/M.

Permalänk: https://www.webforum.nu/p/283117

## #3 — jorgen, 2001-08-08T19:49Z

Hej!

det heter elseif och inte else if. Med else if förväntar den sig 1 end if för varje if.

mvh Jörgen

Permalänk: https://www.webforum.nu/p/283118

## #4 — H_E_Pennypacker, 2001-08-08T19:53Z

så fel det kan bli

en tack så mocka

Permalänk: https://www.webforum.nu/p/283119

---

Tråden på webben: https://www.webforum.nu/amne/asp/11002-hjälp-mig-hitta-felet
