Thread View: be.comp.programming
2 messages
2 total messages
Started by Jawadde
Sat, 04 Oct 2003 07:58
[ASP] Opmaak/layout htmlcodes in browser
Author: Jawadde
Date: Sat, 04 Oct 2003 07:58
Date: Sat, 04 Oct 2003 07:58
20 lines
1614 bytes
1614 bytes
Hoi,
Als je een pagina maakt met ASP dan krijg je, als je de pagina bekijkt in
browser op client en bron weergeven selecteert, alle html-code na elkaar te
zien op 1 lange lijn.
Nu ik vind dat niet "netjes".
In PHP kun je met \n en \t bepalen dat de htmlcode in client resp. op
volgende lijn moet komen of moet inspringen. Voorbeeld:
echo"\n<table>\n\t<tr>\n\t\t<td>.........."
resulteert in
<table>
<tr>
<td>
Bestaat er zoiets in ASP ?
thanx,
Pugi!
Reply to group or to pugilator bij yahoo puntje com
Re: [ASP] Opmaak/layout htmlcodes in browser
Author: Leon Zandman
Date: Sat, 04 Oct 2003 08:18
Date: Sat, 04 Oct 2003 08:18
34 lines
1687 bytes
1687 bytes
> Bestaat er zoiets in ASP ?
Natuurlijk:
Response.write "<table>" & vbCrLf & vbTab & "<tr>"
Resulteert in:
<table>
<tr>
Je kunt ook zonder response.write de HTML naar de client gooien:
<%
' ASP code
test = "blah"
%>
<table>
<tr>
<td><%=test%></td>
</tr>
</table>
Dit resulteert in:
<table>
<tr>
<td>blah</td>
</tr>
</table>
Groeten,
Leon Zandman
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads