use text file as link source

M

mcnewsxp

can i get an example of how to read values from a text file that will be
used as links on my page.
i'll have a .cvs file ala:
LINK ASP_PAGE
"click me1", "clickme1.asp"
"click me2", "clickme2.asp"
"click me3", "clickme3.asp"

i think i can figure out how to do the read, but need to know how to get it
on the page where i need it.

tia,
mcnewsxp
 
E

Evertjan.

mcnewsxp wrote on 06 mrt 2008 in
microsoft.public.inetserver.asp.general:
can i get an example of how to read values from a text file that will
be used as links on my page.
i'll have a .cvs file ala:
LINK ASP_PAGE
"click me1", "clickme1.asp"
"click me2", "clickme2.asp"
"click me3", "clickme3.asp"

i think i can figure out how to do the read, but need to know how to
get it on the page where i need it.

Read with FileSystemObject
repeat:
do a ReadLine
determine that there are no internal apostrophes
scrape off the outer ""
split the result on the '","' to an array
<a href = '<%=a(2)%>'><%=a(1)%></a><br>
etc.
till eof
 
M

mcnewsxp

like i said - i can figure out the reading part.
how do i get it to display on the page where i want it?

Click me1 Clicke me 2 Click me 3
 
E

Evertjan.

mcnewsxp wrote on 06 mrt 2008 in microsoft.public.inetserver.asp.general:
[Please do not toppost on usenet and do not quote signatures]

like i said - i can figure out the reading part.
how do i get it to display on the page where i want it?

Click me1 Clicke me 2 Click me 3

Positioning is clientside html stuff, please ask in a clientside NG.

ASP code runs only serverside.
 
E

Evertjan.

mcnewsxp wrote on 07 mrt 2008 in microsoft.public.inetserver.asp.general:
please only answer questions.

1 what are you responding on?

[please always quote on usenet]


2 This is usenet, not a paid hepldesk
postioning code is written in ASP pages.

Is it?
 
B

Bob Barrows [MVP]

mcnewsxp said:
please only answer questions.

postioning code is written in ASP pages.

BZZZZT
If you can change the file's extension from .asp to .htm and still have
the same question, then you don't have an asp question.

Now, you can continue trying to boss us around and risk not getting an
answer to this or any future question you post in this group (yes,
someone might decide to spend his/her time on an offtopic question - you
should consider yourself fortunate if they do).
Or you can take the well-intentioned advice and post your html/css
question to a group where experts in those tecnologies congregate. Here
are some suggestions:
http://groups.google.com/groups/dir?sel=33584039
 
M

mcnewsxp

Bob Barrows said:
BZZZZT
If you can change the file's extension from .asp to .htm and still have
the same question, then you don't have an asp question.

Now, you can continue trying to boss us around and risk not getting an
answer to this or any future question you post in this group (yes,
someone might decide to spend his/her time on an offtopic question - you
should consider yourself fortunate if they do).
Or you can take the well-intentioned advice and post your html/css
question to a group where experts in those tecnologies congregate. Here
are some suggestions:
http://groups.google.com/groups/dir?sel=33584039

ya'll are a touchy bunch....
thanks for the link.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,088
Latest member
JeremyMedl

Latest Threads

Top