This topic is locked

Add a title to xx_list.asp

12/11/2007 9:11:16 AM
ASPRunnerPro General questions
P
Philip author

Hi
ASPRunner 5.1

I would like to add a kind of title to a xx_list.asp. This addition should b e based on a field value from first record of the list, let's say from field TEST.

Any ideas how to made this?
Regards,

Philip

Sergey Kornilov admin 12/11/2007

Phillip,
you can use "Insert ASP code snippet" function here.
Here is the sample code:

set rstmp = Server.CreateObject("ADODB.Recordset")

rstmp.Open SESSION(strTableName & "_sql"), dbConnection

if not rstmp.eof then

response.write rstmp("FieldName")

end if

rstmp.close : set rstmp=nothing

P
Philip author 12/12/2007

Thanks - works fine.

Philip