chris - thanks so much for your reply
however it is the asp pages that i am having trouble including.
is the Only answer to have all scripts on one page
and to use them only if the database values match
using a case statement.
i was trying to make my layout page clean and simple
and to reuse it for many pages of the site.
example
main layout page
rspage("leftslot1")record contains <!--#include file =autobase/quickfind.asp-->
Code:
x_leftslot1 = rspage("leftslot1")
<div class="leftslot">
<%response.write (x_leftslot1)%>
</div>
quickfind.asp include file
[code
<%Set conn = Server.CreateObject("ADODB.Connection")
conn.Open xDb_Conn_Str
countsql = "SELECT count(stock.make) AS makecount, make.make, make.makeid "_
& "FROM stock "_
& "INNER JOIN make on make.makeid = stock.make "_
& "GROUP BY makeid"
Set rsmakecount = Server.CreateObject("ADODB.Recordset")
rsmakecount.CursorLocation = 3
rsmakecount.Open countsql, conn, 1, 2
response.Write("<table border=0 cellspacing=0 cellpadding=2><tr> <td colspan=2><span class=stockhead>Quick</span><span class=finder>Finder™</span><img src=images/quicklogo2.gif alt=quickfinder width=39 height=21></td></tr>")
x_makecount=0
Do While (Not rsmakecount.Eof)
x_makeid = rsmakecount("makeid")
x_makequick = rsmakecount("make")
x_makecount = rsmakecount("makecount")
response.Write("<tr><td >")
response.Write "<a href=3coltemp.asp?pagesetupid=2&x_Make=" & Server.URLEncode(x_makeid) & "&z_Make==,','><span class=quickfind>" & (x_makequick) & "</span></a></td><td ><span class=quickfind>("& (x_makecount) & ")</span></td></tr>"
'end if
rsmakecount.MoveNext
x_counttotal=x_counttotal+x_makecount
Loop
rsmakecount.close
conn.Close
Set conn = Nothing
response.Write("<tr><td><a href=3coltemp.asp?pagesetupid=2&cmd=reset><span class=quickfindall>Show All>></span></a></td><td><a href=3coltemp.asp?pagesetupid=2&cmd=reset><span class=quickfindall>(" & (x_counttotal) & ")</span></a></td> </tr>")
response.Write("</table>")%>
[/code]
this is just an example as i have more complex asp
pages that i want to 'include' from a database.
if im not making sense let me know!