---
title: "redirect"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/124176-redirect"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "ugo"
published: "2005-03-11T12:51:19.000Z"
updated: "2005-03-11T13:03:29.000Z"
replies: 1
views: 304
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/124176-redirect"
---

# redirect

## #1 — ugo, 2005-03-11T12:51Z

vidare från tidiare inlägg

tack för ideen men nu har jag en id = "70" och en som heter 123
kan jag inte lägga in den i samma sträng eller måste jag gör en function till den oxå, kan jag använda en else... TYP

Function getSubMenu(id, team)
If id = "70" Then
Response.Redirect("http://www.bkflagg.nu/statiskt/index.htm")

Else

If id = "123" Then
Response.Redirect("http://www.bkflagg.nu/statiskt2/index.htm")

Ugo

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

## #2 — nitro2k01, 2005-03-11T13:03Z

Jag förstår inte riktigt din fråga? Du kanske letar efter select case?

```
Function getSubMenu(id, team)
Select case  id
    case "70"
        Response.Redirect("http://www.bkflagg.nu/statiskt/index.htm")
    case "123"
        Response.Redirect("http://www.bkflagg.nu/statiskt2/index.htm")
    case "2345"
        Response.Redirect("http://www.bkflagg.nu/statiskt3/index.htm")
    case else
        Response.write("Felaktigt id")
End Select

end Function
```

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/124176-redirect
