webForumDet fria alternativet

redirect

1 svar · 302 visningar · startad av ugo

ugoMedlem sedan mars 20056 inlägg
#1

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

nitro2k01Medlem sedan aug. 20039 342 inlägg
#2

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
130 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
128 ms — hämta tråd, inlägg och bilagor (db)