ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 16th, 2002, 07:15 PM
Nigorr Nigorr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Brisbane, Australia
Posts: 78 Nigorr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Question What gives??

I have the following line in 'footer.asp'.

<!--#include file="hit_counter.asp?Mode=Text"-->

I get the following error:
Active Server Pages error 'ASP 0126'
Include file not found
footer.asp, line 6
The include file 'ga_hit_counter.asp?Mode=Text' was not found.


But if I use this:
<!--#include file="hit_counter.asp"-->

All is good. Doesn't the "include file" bit like "?Mode=Text". So how do you get around that?

Reply With Quote
  #2  
Old April 16th, 2002, 10:06 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 588 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
You can't specify query string values for include pages, so you need to make seperate pages that call up the page you need. the seperate pages can call the funciton you're after or just redirect to the page that you need to include.

Reply With Quote
  #3  
Old April 16th, 2002, 10:10 PM
Nigorr Nigorr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Brisbane, Australia
Posts: 78 Nigorr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Better tell..

This guy

Also mytch, I read somewhere here you were making a template driven php page or something, would you have a look at this and suggest a way to fix the problem.
Here

Last edited by Nigorr : April 16th, 2002 at 10:12 PM.

Reply With Quote
  #4  
Old April 25th, 2002, 06:42 AM
Osprey Osprey is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Malta, Europe
Posts: 23 Osprey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 15 sec
Reputation Power: 0
Send a message via Yahoo to Osprey
If you are trying to pass arguments to an include file, you might set a variable before the include statement.
Ex:

strMode="TEXT"
<!-- Include.... ....-->

and then in the include file request the value of the variable.
Ex:

IF strMode = "TEXT" THEN....etc

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > What gives??


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap