include file (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


wizard_oz -> 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 -> 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
.
.
%>




wizard_oz -> 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




wizard_oz -> RE: include file (9/12/2004 8:20:13)

Thanks everybody, I solved my problem

elen




ou812 -> 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




wizard_oz -> 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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
4.492188E-02