Vanuit een array wordt de volgorde bepaald van het plaatsen van een aantal elementen.
het scriptje werkt, daar zit het probleem niet in. Mijn vraag is hoe kan ik ervoor zorgen dat de response.write (wat wel het juiste neerzet) ook rendert als asp code, nu verwchijnt het alleen in tekstuele vorm in de htmlo code maar niet als code uitgevoerd.
het scriptje werkt, daar zit het probleem niet in. Mijn vraag is hoe kan ik ervoor zorgen dat de response.write (wat wel het juiste neerzet) ook rendert als asp code, nu verwchijnt het alleen in tekstuele vorm in de htmlo code maar niet als code uitgevoerd.
ASP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| <% Dim myArrayIn(3,2) 'myArray(col,row) nieuws,agenda,forum,documenten,links,leden myArrayIn(0,0) = resultaatComm("nieuwsNaam") myArrayIn(1,0) = resultaatComm("zichtbaar_nieuws") myArrayIn(2,0) = resultaatComm("volgorde_nieuws") myArrayIn(3,0) = "include_nieuws_home.asp" myArrayIn(0,1) = resultaatComm("agendaNaam") myArrayIn(1,1) = resultaatComm("zichtbaar_agenda") myArrayIn(2,1) = resultaatComm("volgorde_agenda") myArrayIn(3,1) = "include_agenda_home.asp" myArrayIn(0,2) = resultaatComm("forumNaam") myArrayIn(1,2) = resultaatComm("zichtbaar_forum") myArrayIn(2,2) = resultaatComm("volgorde_forum") myArrayIn(3,2) = "include_forum_home.asp" ArEvents = arraySort( myArrayIn, 2, false ) For i = 0 to UBound(myArrayIn,2) If myArrayIn(1,i) = "ja" THEN Response.Write "<!--#include file="&myArrayIn(3,i)&"-->" END IF Next %> |