navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

include file

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> include file
Page: [1]
 
wizard_oz

 

Posts: 140
Joined: 9/3/2004
From: Ga,USA
Status: offline

 
include file - 9/11/2004 12:06:40   
Hey, I have an ASP file, and I have a problem to import one file to another. I used the command
Response.Write <!-- #include file='tostest.asp' -->
of course all the programming is inside <%.....%> but it doesn't work. anyone have an idea for me?
Thanks, elen
ou812

 

Posts: 1572
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: include file - 9/11/2004 13:41:01   
I'm not sure what you are trying to do. Just use an include file? If so, leave the response.write out and have the include outside of the ASP tags.

<%
ASP code
.
.
%>
<!-- #include file='tostest.asp' -->
<%
ASP code
.
.
%>

(in reply to wizard_oz)
wizard_oz

 

Posts: 140
Joined: 9/3/2004
From: Ga,USA
Status: offline

 
RE: include file - 9/12/2004 1:09:32   
I know I can do it, but I would like to add a condition like
if product_id=1 then
Response.Write <!-- #include file='tostest.asp' -->
end if
And this condition I can't do in HTML

elen

(in reply to ou812)
wizard_oz

 

Posts: 140
Joined: 9/3/2004
From: Ga,USA
Status: offline

 
RE: include file - 9/12/2004 8:20:13   
Thanks everybody, I solved my problem

elen

(in reply to wizard_oz)
ou812

 

Posts: 1572
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: include file - 9/12/2004 10:55:46   
Glad you got it working! I'm still confused to exactly what you were trying to do. Can you post your code?

thanks, brian

(in reply to wizard_oz)
wizard_oz

 

Posts: 140
Joined: 9/3/2004
From: Ga,USA
Status: offline

 
RE: include file - 9/14/2004 1:54:35   
I did
<%
asp code
%>
<%=
asp code
%>
and the problem was the = after the <%, it shouldn't be there,but it can be at the beginning of the code

(in reply to ou812)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> include file
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts