Old 13-05-2004, 04:32   #1 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,643
ASP... I have a question

Alrighty there,

Right I need to include a site menu within a site based on a couple of conditions. I would normally use php to do this but the clients server doesn't support it and they aren't willing to change (bastards). I have zero experience/knowledge of ASP. So my question is two fold...

1. Is there an equivalent to php's include() function in ASP (the most important question)

2. Anyone know of any quick and simle tutorials that would help me out with real basic dynamicisme... (the lazy question - but I ain't got time to look till tonight )

Cheers

D.
  Reply With Quote
Old 13-05-2004, 05:16   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,200
If the file to be included is in the same directory
<!--#include file="file.asp"-->

If not

<!--#include virtual="/someotherdirectory/file.asp"-->

That's as far as my knowledge goes though.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 13-05-2004, 12:02   #3 (permalink)
Cosy
Registered User
 
Join Date: May 2004
Posts: 71
I personally prefer ASP to PHP, thats because I am very experienced with VB and its just VBScript... (actually, you can use JScript as well, but I never have)

The things to remember (these are important differences between VB and VBScript) are:

1. Declaring a variable, the variable can never be declared as a specific variable type, so where you would do:

Code:
Dim thisVariable As Integer

in vbscript:

Code:
Dim thisVariable

I personally dislike this feature but in the end it works...

2. Where you create objects from 3rd party registered COM libraries, you need the Server object to create them for you...

Code:
Dim thisObject Set thisObject = Server.CreateObject("objecttype")

This may still be unclear, but if you are quite confident in VB, ASP will be easy. Check out sites like the Microsoft ASP site, or even PlanetSourceCode.com for examples...
  Reply With Quote
Old 25-05-2004, 13:18   #4 (permalink)
dan
Iris Folder
 
dan's Avatar
 
Join Date: Apr 2003
Location: smokey
Posts: 2,643
Gah,

Forgot to say thanks... Thanks

D.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8