Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP include functions

Newbie
 
Join Date: May 2009
Posts: 1
#1: May 29 '09
Hi,

I'm a novice. Here is my problem:

I have an asp file to export an Excel table whose data comes from SQL. This file has an 'include' file containing a function getVariable(Name). This function returns the value of an abstract name in a meaningful form. I'm trying to use the values returned by this function (e.g. Name-1, Name-2, Name-3 etc) for writing the column headings lik this:

Response.Write "<th>" & getVariable(Name-1) & "</th>"

This returns the variable value - however it is above the line of column names that are "hard written" this way:

Response.Write "<th>Col1</th>"

i.e.

Name-1
Col1

Any ideas? Thanks for help!

prabirchoudhury's Avatar
Familiar Sight
 
Join Date: May 2009
Location: Wellington, New Zealand
Posts: 152
#2: May 30 '09

re: ASP include functions


hey .. try this include file in asp

Expand|Select|Wrap|Line Numbers
  1.  
  2. <!--#include file = "directory_name/your_varpage.asp"--> 
  3.  
  4.  

this might be helpful Server Side Includes


:)
Reply


Similar ASP / Active Server Pages bytes