469,326 Members | 1,229 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

Loading partial page from file.

Getting data from an database and displaying it on a web page is some
thing I have done for years. Now instead of getting data from a
database, I want to get the text of a file and display that on the web
page. The file choice is determined by a user click on a anchor link.

So far I have considered using fso to read a line at at time and doing
Response.Write for each line read.
Seems to me there should be a more elegant solution.

Should I build an array of text line while reading and do only one
response write?

Or is there another solution that I have not discovered.

Suggestions please.

Thanks,

IanO

Sep 20 '07 #1
1 1553
IanO wrote:
Getting data from an database and displaying it on a web page is some
thing I have done for years. Now instead of getting data from a
database, I want to get the text of a file and display that on the web
page. The file choice is determined by a user click on a anchor link.

So far I have considered using fso to read a line at at time and doing
Response.Write for each line read.
Seems to me there should be a more elegant solution.

Should I build an array of text line while reading and do only one
response write?

It depends. If it works as it is, why change it? Do you need better
performance?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Philip | last post: by
4 posts views Thread by blackhawk | last post: by
16 posts views Thread by pawel.pabich | last post: by
9 posts views Thread by Fat Elvis | last post: by
reply views Thread by tony | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.