[thelist] Fw: ulradev dynamic text ASP help

Robert Goodyear rob_goodyear at yahoo.com
Thu Jun 20 17:42:01 CDT 2002


I have a follow-on question to Darren's question:

How expensive is the process of using the File System
Object in ASP? I assume it's far less expensive than
reading text out of a DB query, yet maybe more
expensive than a cached html or asp page.

Anyone have any data on this?

Thanks.

Robert Goodyear
http://www.westeye.com

--- dn at dittodesign.co.uk wrote:
> --
> [ Picked text/plain from multipart/alternative ]
> I'm trying to get text files to load dynamically
> from a path entered in the database. In a similar
> fashion to the dynamic image path routine.
>
> I have a server behaviour that reads a text file
> but still requires a manual insertion of the path.
>
> I'm not an ASPer but figure the Fields.Item in
> the dynamic image I have set up should do it.
>
> <img src="<%=(rscomp.Fields.Item("Image1").Value)%>"
>
> the code for the text file link reads -
>
> <%
>
PhysicalPath=Server.MapPath("companies/keysolve/text1.txt")
> Set
>
MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
> Set
> MyTextFile=MyFileObject.OpenTextFile(PhysicalPath)
> WHILE NOT MyTextFile.AtEndOfStream
> Response.Write(MyTextFile.ReadLine)
> WEND
> MyTextFile.Close
> %>
>
> I presume inserting this
> rscomp.Fields.Item("Description").Value
>
> where rscomp is the recordset and description holds
> the text file
> link, in to the ( ) below would be on the right
> track.
>
>
PhysicalPath=Server.MapPath("companies/keysolve/text1.txt")
>
> Is Value necessary ? To save me sweating over it for
> an hour or
> so could somebody please let me know the syntax or
> if I'm off track
> with this one.
>
> tia,
>
> Darren


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the thelist mailing list