webForumDet fria alternativet

Response.write

10 svar · 251 visningar · startad av roj

rojMedlem sedan apr. 2002179 inlägg
#1

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>"
%>
erkaMedlem sedan dec. 19994 597 inlägg
#2

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

yazMedlem sedan maj 2002880 inlägg
#3

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.

rojMedlem sedan apr. 2002179 inlägg
#4

Typ så här

<TABLE width='100%' border='0' cellspacing='0'><TR  height='30%'><TD class='td'>&nbsp;</TD></TR></TABLE><b>hej</b>
rojMedlem sedan apr. 2002179 inlägg
#5

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

PalleMedlem sedan apr. 20002 716 inlägg
#6

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]
rojMedlem sedan apr. 2002179 inlägg
#7

Tack Palle funkar ju toppen.. :)

PalleMedlem sedan apr. 20002 716 inlägg
#8

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

rojMedlem sedan apr. 2002179 inlägg
#9

Word!

Wiklund!!Medlem sedan juli 2002556 inlägg
#10

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

Denniz PoPMedlem sedan aug. 2002206 inlägg
#11

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

Genererad på 384 ms · cache AV · v20260730165559-full.f96bc7eb