---
title: "Response write"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/12272-response-write"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "andreas_lindh"
published: "2001-10-24T13:46:00.000Z"
updated: "2001-10-24T14:21:00.000Z"
replies: 5
views: 195
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/12272-response-write"
---

# Response write

## #1 — andreas_lindh, 2001-10-24T13:46Z

Hur ska man skriva det här för att det ska fungera?

```
Response.write "<td width='"30%"'>" &Rs("Datum")&"</td>"
```

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

## #2 — @nders, 2001-10-24T13:48Z

```
Response.write "<td width=""30%"">" & Rs("Datum") & "</td>"
```

Mvh,

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

## #3 — andreas_lindh, 2001-10-24T14:05Z

Tack.

Vad är fel på den här koden?

```
<% do until rs.eof %>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<% 
strcolor="#ff0000"
strcolor1="#000000"
if Rs("Datum") = Date() then
Response.Write "<font color='" & strColor & "'>"
Response.write "<tr>" 
Response.write "<td width=""30%"">" & Rs("Datum") & "</td>"
Response.write "<td width=""10%"">" & Rs("Tid") & "</td>"
Response.write "<td width=""45%"">" & Rs("Match") & "</td>"
Response.write "<td width=""15%"">" & Rs("Resultat") & "</td>"
Response.write "</tr>"
response.write "</font>" 
else%>
<% response.write "<font color='" & strColor1 & "'>" & Rs("Datum") & "</td>"
Response.write "<td width=""10%"">" & Rs("Tid") & "</td>"
Response.write "<td width=""45%"">" & Rs("Match")%> & "</td>"
Response.write "<td width=""15%"">" & Rs("Resultat") & "</td></tr></font>" %>
<% end if %>
</table>
<%
Rs.MoveNext
Loop%>
```

\[Redigerat av andreas_lindh den 24 okt 2001\]

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

## #4 — andreas_lindh, 2001-10-24T14:10Z

Löste det

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

## #5 — @nders, 2001-10-24T14:11Z

Vad är det som inte fungerar med den?

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

## #6 — andreas_lindh, 2001-10-24T14:21Z

Nu fungerar den. Jag hade lite för många " och en %\> för mycket.

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/12272-response-write
