472,101 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,101 software developers and data experts.

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 1589
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.