[thelist] ulradev dynamic text ASP help - repost

Ken Kogler ken.kogler at cph.org
Fri Jun 21 08:01:01 CDT 2002


> I'm trying to get text files to load dynamically
> from a path entered in the database.

Sounds simple enough.

> In a similar fashion to the dynamic image path routine.

I don't know what that is...

> the code for the text file link reads -

> [*snip*]

> I presume inserting this
> rscomp.Fields.Item("Description").Value

> where rscomp is the recordset and description holds the text file
> link, between the ( ) below would be on the right track.

you'd want this:
  PhysicalPath=Server.MapPath(rscomp.Fields.Item("Description").Value)

That assumes 3 things:
 1) Your recordset is named "rscomp"
 2) that the column name in the database is "description"
 3) the value of that field is in the form "/companies/keysolve/text1.txt"

> Is Value necessary ?

Yes. There are a few different things that could be there.
rscomp.Fields.Item("Description").name, for example returns the name of the
column instead of the value in the row.

HTH,
KEN




More information about the thelist mailing list