I have been following this thread and am very interested in the whole ASP
fuse proposition. I have done a fair amount of ASP in the past and from what
I can gather about how the ASP engine parses code the include files are
parsed first and then parsed result is included in the current page. Thus if
you wanted to "dynamically" include you would need to use a Select statement
something like:
<%
Select Case Fuseaction
Case newuser%>
<!-- #include file = "newuser.asp">
<%Case deleteuser%>
<!-- #include file = "deleteuser.asp">
<%End Select%>
The problem with that is you can't pass variables because whatever is inside
the quotes gets looked at as a literal string.
However in answer to this whole problem the new ASP.net makes this very easy
from everything that I have read. They use what are called user controls
(pagelet) and you can not only call a user control but can pass info in for
parsing. Everything is dynamic built on the fly, in fact the pages
themselves are compiled making processing much faster.
For those interested in playing with this MS has just released Beta 1. There
is good reason to believe that this is a very stable application server for
many reasons, of which doesn't fit in the scope of this email.
Hope that helps.
Jeff Giesbrecht
-----Original Message-----
From: Scott Helm [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 13, 2000 2:26 PM
To: Fusebox
Subject: RE: Fused ASP
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C04DAF.F9E61096
Content-Type: text/plain;
charset="iso-8859-1"
I think he may be referring to (and I _know_ that I am) passing
arguments to the included file (as with a cfmodule) For example,
is there a way to do this:
<!-- #include file = "act_getUser.inc" --> and pass a username
and password to act_getUser.inc?
Would we merely rely on the form or querystring collections to
supply that information to the included file? Or is there a way to
explicitly state the value for that file?
As in: <!-- #include file = "actGetUser.inc?username=Joe&password=Bob">
Thanks!
BTW, this is my first day on this list. I stopped by the fusebox
session at the developers conference and bought the book, and was
very excited by what I heard and saw there! The practice of encapsulation,
structure and code re-use is given some context with this system, and I
am interested in seeing its universality tested by porting it out of
its native tongue.
Scott Helm
Senior E-Business Consultant
Ballantyne Consulting Group
[EMAIL PROTECTED]
-----Original Message-----
From: David Huyck [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 11, 2000 1:34 PM
To: Fusebox
Subject: Re: Fused ASP
Okay, I was just joking about the rebel thing. But I am interested to know
if anyone has found a way to get ASP to include the way I am used to...
David
-----Original Message-----
From: Chris Williams [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 13, 2000 1:56 PM
To: Fusebox
Cc: 'David Huyck'
Subject: RE: Fused ASP
David~ Is this what your looking for? Keep in mind I am a dba not a web
dev. ;-)
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<form action="default.asp?fuseaction=HI" title=form1 method=post>
This is the value of the fuseaction:
<%=Request.QueryString("Fuseaction")%>
<%If Request.QueryString("Fuseaction") = "HI" then %>
<!---#include file=hi.asp -->
<%end if%>
<INPUT type="submit" value="Submit" id=submit1 name=submit1>
</form>
</BODY>
</HTML>
-----Original Message-----
From: David Huyck [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 11, 2000 1:34 PM
To: Fusebox
Subject: Re: Fused ASP
Okay, I was just joking about the rebel thing. But I am interested to know
if anyone has found a way to get ASP to include the way I am used to...
David
----------------------------------------------------------------------------
--
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..
------_=_NextPart_001_01C04DAF.F9E61096
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>RE: Fused ASP</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>I think he may be referring to (and I _know_ that I am)
passing </FONT>
<BR><FONT SIZE=2>arguments to the included file (as with a cfmodule)
For example,</FONT>
<BR><FONT SIZE=2>is there a way to do this:</FONT>
<BR><FONT SIZE=2><!-- #include file = "act_getUser.inc" -->
and pass a username </FONT>
<BR><FONT SIZE=2>and password to act_getUser.inc? </FONT>
</P>
<P><FONT SIZE=2>Would we merely rely on the form or querystring collections
to </FONT>
<BR><FONT SIZE=2>supply that information to the included file? Or is there a
way to </FONT>
<BR><FONT SIZE=2>explicitly state the value for that file?</FONT>
<BR><FONT SIZE=2>As in: <!-- #include file =
"actGetUser.inc?username=Joe&password=Bob"> </FONT>
</P>
<P><FONT SIZE=2>Thanks!</FONT>
</P>
<P><FONT SIZE=2>BTW, this is my first day on this list. I stopped by
the fusebox </FONT>
<BR><FONT SIZE=2>session at the developers conference and bought the book,
and was </FONT>
<BR><FONT SIZE=2>very excited by what I heard and saw there! The
practice of encapsulation, </FONT>
<BR><FONT SIZE=2>structure and code re-use is given some context with this
system, and I </FONT>
<BR><FONT SIZE=2>am interested in seeing its universality tested by porting
it out of </FONT>
<BR><FONT SIZE=2>its native tongue. </FONT>
</P>
<P><FONT SIZE=2>Scott Helm</FONT>
<BR><FONT SIZE=2>Senior E-Business Consultant</FONT>
<BR><FONT SIZE=2>Ballantyne Consulting Group</FONT>
<BR><FONT SIZE=2>[EMAIL PROTECTED]</FONT>
</P>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: David Huyck [<A
HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
<BR><FONT SIZE=2>Sent: Saturday, November 11, 2000 1:34 PM</FONT>
<BR><FONT SIZE=2>To: Fusebox</FONT>
<BR><FONT SIZE=2>Subject: Re: Fused ASP</FONT>
</P>
<BR>
<P><FONT SIZE=2>Okay, I was just joking about the rebel thing. But I
am interested to know</FONT>
<BR><FONT SIZE=2>if anyone has found a way to get ASP to include the way I
am used to...</FONT>
</P>
<P><FONT SIZE=2>David</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Chris Williams [<A
HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
<BR><FONT SIZE=2>Sent: Monday, November 13, 2000 1:56 PM</FONT>
<BR><FONT SIZE=2>To: Fusebox</FONT>
<BR><FONT SIZE=2>Cc: 'David Huyck'</FONT>
<BR><FONT SIZE=2>Subject: RE: Fused ASP</FONT>
</P>
<BR>
<P><FONT SIZE=2>David~ Is this what your looking for? Keep in
mind I am a dba not a web</FONT>
<BR><FONT SIZE=2>dev. ;-)</FONT>
</P>
<P><FONT SIZE=2><HTML></FONT>
<BR><FONT SIZE=2><HEAD></FONT>
<BR><FONT SIZE=2><META NAME="GENERATOR" Content="Microsoft
Visual Studio 6.0"></FONT>
<BR><FONT SIZE=2><TITLE></TITLE></FONT>
<BR><FONT SIZE=2></HEAD></FONT>
<BR><FONT SIZE=2><BODY></FONT>
<BR><FONT SIZE=2><form action="default.asp?fuseaction=HI"
title=form1 method=post></FONT>
</P>
<P><FONT SIZE=2>This is the value of the fuseaction: </FONT>
<BR><FONT
SIZE=2><%=Request.QueryString("Fuseaction")%></FONT>
</P>
<P><FONT SIZE=2><%If Request.QueryString("Fuseaction") =
"HI" then %></FONT>
<BR><FONT SIZE=2><!---#include file=hi.asp --></FONT>
<BR><FONT SIZE=2><%end if%></FONT>
</P>
<P><FONT SIZE=2><INPUT type="submit" value="Submit"
id=submit1 name=submit1></FONT>
<BR><FONT SIZE=2></form></FONT>
<BR><FONT SIZE=2></BODY></FONT>
<BR><FONT SIZE=2></HTML></FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: David Huyck [<A
HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT>
<BR><FONT SIZE=2>Sent: Saturday, November 11, 2000 1:34 PM</FONT>
<BR><FONT SIZE=2>To: Fusebox</FONT>
<BR><FONT SIZE=2>Subject: Re: Fused ASP</FONT>
</P>
<BR>
<P><FONT SIZE=2>Okay, I was just joking about the rebel thing. But I
am interested to know</FONT>
<BR><FONT SIZE=2>if anyone has found a way to get ASP to include the way I
am used to...</FONT>
</P>
<P><FONT SIZE=2>David</FONT>
</P>
<P><FONT
SIZE=2>---------------------------------------------------------------------
-------</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>To Unsubscribe visit</FONT>
<BR><FONT SIZE=2><A
HREF="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x"
TARGET="_blank">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=li
sts/fusebox</A> or</FONT>
<BR><FONT SIZE=2>send a message to [EMAIL PROTECTED] with
'unsubscribe' in</FONT>
<BR><FONT SIZE=2>the body.</FONT>
<BR><FONT
SIZE=2>---------------------------------------------------------------------
---------</FONT>
<BR><FONT SIZE=2>To Unsubscribe visit <A
HREF="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebo
x"
TARGET="_blank">http://www.houseoffusion.com/index.cfm?sidebar=lists&body=li
sts/fusebox</A> or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body..</FONT></P>
</BODY>
</HTML>
------_=_NextPart_001_01C04DAF.F9E61096--
----------------------------------------------------------------------------
--
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.