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