Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Possablity of Dynamic Include in ASP!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Possablity of Dynamic Include in ASP!

 Post Reply Post Reply Page  12>
Author
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Topic: Possablity of Dynamic Include in ASP!
    Posted: 20 June 2004 at 5:02am

Just an idea that poped my mind, thought i'd finish up this long never ending discussion once & for all.

well, the alograthem goes like this....

<%
suppose myfilename="somefile.asp"
create a new file in "temp/file_to_include.asp"
writeline "<!-- include file=""/includes/" & myfilename & """ -- >"
%>
<!-- include file="temp/file_to_include.asp" -->



shud this work ???

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 8:25am
NOT TESTED (*dpyers Style*)
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 8:36am
Errrr..... Yeah!  But I don't really see the point in it...
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 9:34am
Dynamic include was really a big prob .. i mean one of the "MOST" frequently asked question in almost all of the ASP discusion boards... WEB WIZ FORUMS found the answer... isent it great ?
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 5:21pm

No it won't work, otherwise the dynamic include problem would be solved.

Includes are exectued BEFORE any ASP scripts, which means that ASP will response.write all the includes too late - includes would have already been loaded

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 8:49pm
Actually it works, but you would get the last include generated included on the file, not the most current one.
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2004 at 1:11pm

Meanz its useless

Who will like to include a PREVIOUS File ?? NO possible situation can need to include a previous file.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2004 at 5:06pm
Useless yes, but it does work
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.