Loading partial page from file.

Loading partial page from file.

am 20.09.2007 17:11:45 von IanONet

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

Re: Loading partial page from file.

am 20.09.2007 17:29:15 von reb01501

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"