---
title: "Response.write"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/66610-response-write"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "roj"
published: "2003-01-30T10:08:03.000Z"
updated: "2003-01-31T10:37:36.000Z"
replies: 10
views: 262
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/66610-response-write"
---

# Response.write

## #1 — roj, 2003-01-30T10:08Z

Hmm jag får inga felmedelanden men samtidigt så skriver min kod ingenting? Någon som ser vad som är fel?

```
<%
response.write "<TABLE width='100%' border='0' cellspacing='0'>"
response.write "<TR  height='30%'>"
response.write "<TD class='td'>&nbsp;</TD>" 
response.write "</TR>" 
response.write "</TABLE>"
response.write "<TABLE width='15%' border='0' cellspacing='0'>"
response.write "<TR>"
response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;</TD>"
response.write "</TR>"
response.write "<TR>"
response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9''  onMouseOut='this.style.background='#e1e1e1''>&nbsp;</TD>"
response.write "<TR>"
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "<TR>" 
	response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2'onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1'onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td2' onMouseOver='this.style.background='#e1e1d9'' onMouseOut='this.style.background='#e1e1e1''>&nbsp;"
	response.write "</TD>" 
response.write "</TR>" 
response.write "<TR>" 
	response.write "<TD class='td1' onMouseOver='this.style.background='#eeeee1'' onMouseOut='this.style.background='#eeeeee''>&nbsp;"
	response.write "</TD>"
response.write "</TR>" 
response.write "</TABLE>"
response.write "<b>hej</b>"
%>
```

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

## #2 — erka, 2003-01-30T10:14Z

Om du visar källa, hur ser koden ut då ?

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

## #3 — yaz, 2003-01-30T10:22Z

hmm, kan det bero på enkel-fnuttarna som är nästlade i dina styles? 

ett tips är annars att strunta i response.write helt o hållet. gör så här istället: 

1\. skriv din asp-kod. stäng asp-tag
2\. skriv ren html
3\. öppna asp-tag och fortsätt med asp-kod, variabler o allt möjligt
4\. repetera när du vill lägga in större kodstycken i html.

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

## #4 — roj, 2003-01-30T10:29Z

Typ så här

```
<TABLE width='100%' border='0' cellspacing='0'><TR  height='30%'><TD class='td'>&nbsp;</TD></TR></TABLE><b>hej</b>
```

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

## #5 — roj, 2003-01-30T10:39Z

Okej nu funkar det men inte med mitt stylesheet.. Går det inte att ha det nu då eller?

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

## #6 — Palle, 2003-01-30T10:45Z

Testa denna: \*phu\* ;)

```
[RED]<%

	Response.Write ""&_
		
		"<TABLE width=""100%"" border=""0"" cellspacing=""0"">"& vbcrlf &_
		"<TR  height=""30%"">"& vbcrlf &_
		"<TD class=""td"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR>"& vbcrlf &_ 
		"</TABLE>"& vbcrlf & vbcrlf &_
		
		"<TABLE width=""15%"" border=""0"" cellspacing=""0"">"& vbcrlf &_
		"<TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td2"" onMouseOver=""this.style.backgroundColor='#e1e1d9';"" onMouseOut=""this.style.backgroundColor='#e1e1e1';"">&nbsp;</TD>"& vbcrlf &_ 
		"</TR><TR>"& vbcrlf &_
		"<TD class=""td1"" onMouseOver=""this.style.backgroundColor='#eeeee1';"" onMouseOut=""this.style.backgroundColor='#eeeeee';"">&nbsp;</TD>"& vbcrlf &_
		"</TR>"& vbcrlf &_ 
		"</TABLE>"& vbcrlf &_
		"<b>hej</b>"

%>[/RED]
```

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

## #7 — roj, 2003-01-30T10:47Z

Tack Palle funkar ju toppen.. :)

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

## #8 — Palle, 2003-01-30T10:51Z

Gutt mos!
Replace-funktionen i texteditorn kan rädda liv.. ;)

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

## #9 — roj, 2003-01-31T07:21Z

Word!

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

## #10 — Wiklund!!, 2003-01-31T10:15Z

Va fan har Word med saken att göra?  :p

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

## #11 — Denniz PoP, 2003-01-31T10:37Z

Han kanske använde det för att söka och ersätta? ;)

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

---

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