Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 How do you do an <!--#include file=
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Intrepidone
Average Member

Canada
515 Posts

Posted - 03 June 2001 :  22:52:18  Show Profile
How would you do an <!--#include file= within a response.write line? I have tried but come up with errors.

Intrepidone

e3stone
Average Member

USA
885 Posts

Posted - 03 June 2001 :  22:55:38  Show Profile  Send e3stone an AOL message
you can't do that because the includes are processes first, before anything else on the page.

Sometimes you can have an "if...then" statement, but still, all the includes are processed before the "if...then" is.

In what sort of situation where you wanting to use this?

<-- Eric -->


http://insidewaco.com/forum/home.asp
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 03 June 2001 :  23:26:31  Show Profile
I have a new forum on my pws that I am working on and is enclosed in a table. Start of the table is at the bottom of inc_top.asp and the close of the table is at the top of inc_footer.asp

If I click on something (for example) the Cancel E-Notify, when the notifies are deleted it is called from a response.write, and brings up the page saying "All Requests Are Removed", since there is no inc_footer.asp in the response.write it breaks up my table at the bottom.

What I have been doing is changing the response.write back to plain ole html so I can use the
<!--#INCLUDE FILE="inc_footer.asp" -->

Just thought that maybe there was an easier way that I could do the <!--#INCLUDE FILE="

Thanks for the response e3stone

Intrepidone
Go to Top of Page

Intrepidone
Average Member

Canada
515 Posts

Posted - 03 June 2001 :  23:34:58  Show Profile
I figured something out that works

example

response.write "<center><font face=""" & strDefaultFontFace & """ size=3><b>Selected Requests removed!</b></font></center>"
response.write "<div align=""center""><a href=""default.asp"">Back to Forum</a></div>"
%> <!--#INCLUDE FILE="inc_footer.asp" --> <%
response.write "<meta http-equiv=""Refresh"" content=""2; URL=cancel_replies.asp"">"
Response.End


In bold is where I put the <!--#INCLUDE FILE="inc_footer.asp" --> but I added the %> and <% before and after it and all is fine now

Intrepidone
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07