Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include File Problem 1

Status
Not open for further replies.

ecugrad

MIS
Apr 17, 2001
191
US
I need to include the adovbs.inc file into an ASP page to try to do multiple Batch Updates. I put the file in the same directory as the ASP page I'm using it in. And I'm including the reference at the top of the page:
<-- #include file=&quot;advobs.inc&quot; -->

When I run the page I'm only displaying all the text in the Include file. Can somebody tell me where I went wrong. I'm using PWS.

Thanks
Mike
 
use this instead - OUTSIDE of your ASP delimiters
Code:
<!-- METADATA TYPE=&quot;typelib&quot; FILE=&quot;C:\Program Files\Common Files\System\ado\msado15.dll&quot; -->

this file has the same ADO constants definitions as adovbs.inc Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Or more simply... Your missing the ! in your opening tag:

<!--

later,
mwa
 
The trouble with using...
Code:
<!-- #include file=&quot;adovbs.inc&quot; -->
...is that the entire file is included into your ASP page which makes the pages much larger than they need to be. many of the constants in this file will not be used in your site. Using the .dll instead is a much more efficient way of referencing the ADO constants. Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top