Jay,
First let me start off by saying I don't think asp sucks, for that matter I don't
think cold fusion, php, perl, c, or any language sucks well, maybe fortran 77 :). They
all have there advantages and disadvantages. I urge everyone to learn as many
languages as they have time for. In regards to your question, as far as I know there
is the only 2 major conversion in asp that need to be made.
1) A change from cfmodule to subs or functions. For example in fusebox if you have to
include a file more than once, you will typically use cfmodule opposed to using
cfinclude. In asp you would simply write a function or sub that would include a file
(so during compilation asp does not have to include the file multiple times) then
simply call the function.
2) A change from UrlForm2attributes will also be needed.
Passing through standard means index.asp?ID=5000&Token=ADA31G3JH54JT5Y5(as opposed to
directory passing -> index.asp/ID/5000/Token/ADA31G3JH54JT5Y5/) can simply be done by
storing all of your Url and Form variables into a Dictionary object. With directory
passing everything get's kind of complicated. With asp, the script does not recieve
any information as a query string, actually the file is listed as not found. so what
you have to do is convert over a method being used in php for handling this situation.
In IIS, you will need to change the 404 handler to the URL of a handler page for your
site. This handler page will be sent the information regaurding the unfound file and
you will have to parse the information and then redirect to the page with the
information as a query string.
As far as the form submissions go, I do not recommend using this method for forms as
the form variables will drop off during the redirect, unless you make your handler
page the same page as the one being requested (404 handler = index.asp).
check out http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/ , it's
a great asp reference
I am currently working on a site applying these techniques, but it is not scheduled to
be deployed for 3 weeks. When it is I will post it's URL.
I am also working on converting the HTML::Template used in Perl into ASP. If anyone
has done any work on this, please contact me.
Please note the following was based on my opions and reasearch. If you find to the
contrary, please feel free to reply.
Good luck,
Don Sparks
------Original Message------
From: "Jay Jennings" <[EMAIL PROTECTED]>
To: Fusebox <[EMAIL PROTECTED]>
Sent: November 11, 2000 2:44:14 PM GMT
Subject: Fused ASP
ASP sucks so hard it's not even funny, but I have to use it on my current
project (they threw buckets of money at me). I know fusebox.org says info on
doing asp fusebox is coming, but I can't wait. Has anyone done much of it?
Any hints you'd like to share so I don't run into deadends? Thanks!
Jay Jennings
Alakazam
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.