| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Iris Folder
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. |
|
|
|
|
|
#2 (permalink) |
|
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.
|
|
|
|
#3 (permalink) |
|
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:
in vbscript: Code:
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:
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... |
|
![]() |