---
title: "IF strul"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/82036-if-strul"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "SteveP"
published: "2003-07-15T14:59:52.000Z"
updated: "2003-07-15T15:01:22.000Z"
replies: 1
views: 189
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/82036-if-strul"
---

# IF strul

## #1 — SteveP, 2003-07-15T14:59Z

```
Response.Write "<option value=PostList.asp?ID=" & ObjRs("ContactID") _
If CInt(VarContactID) = ObjRs("ContactID") then
Response.Write ("Selected")
end if
& ">" _ 
& ObjRs("FirstName") & ObjRs("SurName") & "</option>"
```

Expected end of statement 

If CInt(VarContactID) = ObjRs("ContactID") then
^

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

## #2 — SteveP, 2003-07-15T15:01Z

ibland är man hjärndöd

```
Response.Write "<option value=PostList.asp?ID=" & ObjRs("ContactID")
If CInt(VarContactID) = ObjRs("ContactID") then
Response.Write (" Selected")
end if
Response.write (">") 
Response.Write (ObjRs("FirstName") & ObjRs("SurName") & "</option>")
```

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/82036-if-strul
