Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - IF statement for different header?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

IF statement for different header?

 Post Reply Post Reply Page  <12
Author
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2004 at 9:12pm
For i = 1 to 1000000

Originally posted by xeerex from above xeerex from above wrote:

"In short, the includes are processed prior to other script so in theory it is impossible to make them dynamic. However, there are ways "around" it."

Here's a [ search ] to help you out.

In short, the includes are processed prior to other script so in theory it is impossible to make them dynamic. However, there are ways "around" it.


Next i
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2004 at 5:31am
Right, so it's on another application you are working on?

As it was said before you can't just:

If someCondition Then
   SSInclude this
ElseIf otherCondition Then
   SSInclude that
End If

Well you can, if the 2 includes don't conflict with each other, but it's bad doing so anyway, I find the best way to do this, if they are small includes, is to use XML. In the XML file you'll have your code, then you need to read each line of XML into an ASP array, then discharge the array with (Response.Write aspArr(i)) inside your If conditions accordingly.

Nice one xeerex, loop through it 1 mil times, maybe he will do it.

Edited by theSCIENTIST
Back to Top
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2004 at 1:00pm

I read a lot of article.. most of them said it is not possilble to do dynamic includes, but I can try to do server.execute, then I went on and read more about it.. I even found some example from http://asp-hosting.ca/faq/How-to-use-Server.Execute-method-i n-ASP.htm & http://support.microsoft.com/kb/q224363/.. and And, when ever I try to excute the page it always says
HTTP/1.1 404 Object Not Found

I have windows 2000 server with SII 5.0. Can anyone tell me what can possilible go wrong?



Edited by Lucent
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2004 at 4:02pm
  1. Looks like your include is putting full html head and foot tags in the pafe. If do a view source. You can only have 1 set of head, body tags. If you're going to include content on the execute.asp from the other asp pages based up0on an if statement, just include the content portions of a page, the head and foot tags are already taken care of by execute.asp.
  2. Your form action is on another site. It has to be on your site. Use the form to get the relevant drop-down info, and the form handler specified by the form action should then craft the url and use Server.XMLHTTP to do a get/post to the other site.

Lead me not into temptation... I know the short cut, follow me.
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.