[thelist] ulradev dynamic text ASP help - repost

dn at dittodesign.co.uk dn at dittodesign.co.uk
Fri Jun 21 08:38:01 CDT 2002


Cheers Ken, it was so easy I wouldn't believe
I'd figured it out.

This ASP malarkey's a breeze =8-)
fingers crossed.

Darren


----- Original Message -----
From: "Ken Kogler" <ken.kogler at cph.org>
To: <thelist at lists.evolt.org>
Sent: Friday, June 21, 2002 2:00 PM
Subject: RE: [thelist] ulradev dynamic text ASP help - repost


> > 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
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>




More information about the thelist mailing list