Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
<--#include File=""--> script help?
Old 08-07-2006, 09:54 AM <--#include File=""--> script help?
Novice Talker

Posts: 12
Trades: 0
Hi,

I'm having a problem with my scripts
What i am trying to do is intergrate my page1.asp code into a WYSWIG editor i have designed (mixture of mainly ASP and a it of JAVASCRIPT)

I have taken the code from page1.asp and placed it into my WYSWIG editor which in turn places it into an SQL database. When i go to view the new updated page it doesn't display anything...No errors nothing.

So i think its down to the
Code:
<--#include File="connect.asp"-->
The trouble is the connect.asp page is no longer in same folder as the Page1.asp page and on a different server than the SQL database


Is there away i can link to this page using direct paths or some special code etc?

Many thanks
Joe
Gibson is offline
Reply With Quote
View Public Profile Visit Gibson's homepage!
 
 
Register now for full access!
Old 08-07-2006, 04:37 PM Re: <--#include File=""--> script help?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
No. The include has to sit on the same server as the page calling it, otherwise that would be a HUUUUUUUGE security and copyright issue.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-07-2006, 07:17 PM Re: <--#include File=""--> script help?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
doesn't matter what server the SQL Database is on just as long as the connection details are correct.

As Adam states the includes must be on the same server though.
If they are not on the same folder level as the current file you need to use a virtual include and reference the included file from the site root.

<!--#include virtual="/path/included_file.asp" -->

<selfpromo type="link"> Programming Articles - Coding - Includes - ASP Includes </selfpromo>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 08-07-2006 at 07:19 PM.. Reason: it's preview not submit first :D
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to <--#include File=""--> script help?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11526 seconds with 12 queries