<% 'get the full URL into a variable url=Request.ServerVariables ("URL") 'Response.Write url & "
" 'go back from the end of the URL to find the first "/" fileName=right(URL,len(URL)-instrRev(URL,"/")) 'Response.Write fileName & "
" 'remove the ".asp" to get the pageName variable pageName=replace(fileName,".asp","") 'Response.Write pageName & "
" %> <% SQLString="SELECT * FROM custompages WHERE pagename='" & pagename & "'" 'Response.Write SQLString set rs=conn.execute(SQLString) pagename = rs("pagename") pagedata = rs("pagedata") pageheading = rs("pageheading") pagecategory = rs("pagecategory") selectID = rs("ID") pagehelper = rs("pagehelper") pageIcons = rs("pageIcons") %> University Plumbing & Heating Ltd.
  Client FTP                
  University Plumbing & Heating  
  University Plumbing & Heating  
     
  Slideshow image  
 

University Plumbing & Heating

<%=pagedata%>