My ASP is a bit rusty and the code is a bit long for here. So, how about
PSUEDO Code:

1) Store CFID & CFToken in an ASP Session Variable

2) Have some other values you want to send to CF (I'm assuming their
session variables_

3) Use a FOR IN structure to loop over the SESSION level scope
    be avoid the CFID and CFTOKEN variables in your session scope

4) In this loop build your the WDDX packet you want to store.  This
packet should match the format that CF uses for its client variables.
You'll need to play with how to do this.  Their is some good reference
at http://www.wddx.org/WDDX_SDK/joust_files/ on the WDDX object for ASP.
You might be able to use the "serialize" method and simply convert a RS
into the packet ....or it might just be easier to build the packet by
hand.

5) Either way once the packet is built update the CF client variable
tables using the CFID and CF Token you are storing in memory.

Note: you could run into some concurrency issues here.  Using the
HITCOUNT and LASTVIST flags should allow you to work around this (check
the options you have set for the Client Store in CF Administrator)


Hope that helps. If you need something a bit more concrete, pester me
and I'll write something, but I most likely won't have time till Monday.

-eric


------------------------------------------------
Common sense is genius dressed in its working clothes.
 -- Ralph Waldo Emerson

Eric Barr
Zeff Design
(p)  212.714.6390 
(f)   212.580.7181


-----Original Message-----
From: Scott, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 9:44 PM
To: CF-Talk
Subject: RE: Strengths of each


First of all thanks for the part about the asp.net, I haven't the time
to
digest this information at the moment. I am well aware that there is no
Custom Tag functionality in ASP and that you need to write functions.

I have all this already coded and ready to go, what I need is the logic
to
know what variables have been set in a page (ASP pages only) so that I
can
take these out of ASP and migrate these across to CF. Going from CF to
ASP
is no problem what so ever:-)

So if you have code that I can see that would do this I would like to
see
it:-)



-----Original Message-----
From: Eric Barr [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2001 04:02
To: CF-Talk
Subject: RE: Strengths of each


> if there was a tag like cfa_dump on ASP, that could dump session,
> application etc then I have the code waiting but I just need that
answered.

In ASP you can Dump all the variables.  Its not too hard. Their are 5
intrinsic objects in ASP   : Response, Request, Application, Session and
Server. For any of these objects you could simply walk their structure
using a FOR IN loop.

In ASP their aren't really custom tags. ... you can write functions, run
include files, or instantiate some type of object to do the work ... the
quickest would most likely write the code in a function.  And simply
include it on the pages you want to show the debug information.  You
might want to look into the Trace functionality coming in ASP.NET (
http://msdn.microsoft.com/library/default.asp?URL=/library/dotnet/cpguid
e/cpcontracefunctionality.htm)


-eric
------------------------------------------------
Common sense is genius dressed in its working clothes.
 -- Ralph Waldo Emerson

Eric Barr
Zeff Design
(p)  212.714.6390 
(f)   212.580.7181
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to