Need to access ASP from a middle-tier

Discussion in 'ASP General' started by Mr. Smart, Jun 25, 2005.

  1. Mr. Smart

    Mr. Smart Guest

    I have a middle-tier written using Foxpro. I'd like this tier to coommunicate
    (that is pass some variables to ASP). I defined a Session variable somewhere
    in my ASP file, e.g. Session("Usercode") = Somevalue. Now somewhere else, I
    want to change this value. I tried this:
    UserSession = CREATEOBJECT('ASPTypeLibrary.Session')
    UserSession.Contents("Usercode") = TheUsercode
    However, it gives the error: ASPTypeLibrary.Session is not found. However,
    VB's object browser lists this! What am I doing wrong? Thanks in advance
    Mr. Smart, Jun 25, 2005
    #1
    1. Advertising

  2. Mr. Smart wrote:
    > I have a middle-tier written using Foxpro. I'd like this tier to
    > coommunicate (that is pass some variables to ASP). I defined a
    > Session variable somewhere in my ASP file, e.g. Session("Usercode") =
    > Somevalue. Now somewhere else, I want to change this value. I tried
    > this:
    > UserSession = CREATEOBJECT('ASPTypeLibrary.Session')
    > UserSession.Contents("Usercode") = TheUsercode
    > However, it gives the error: ASPTypeLibrary.Session is not found.
    > However, VB's object browser lists this! What am I doing wrong?
    > Thanks in advance


    You should try a Foxpro or VBA group. A little bit of the prior code should
    help somebody resolve the issue.

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
    Bob Barrows [MVP], Jun 25, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Craig Buchanan

    Middle-tier equivalent to server.mappath?

    Craig Buchanan, Jan 26, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,588
    martin
    Jan 27, 2004
  2. Guadala Harry

    ADO.NET DataReaders and the Middle Tier

    Guadala Harry, Feb 21, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    799
    Guadala Harry
    Feb 21, 2004
  3. rob

    ASP v2 & 3-tier or 2-tier

    rob, Aug 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    407
    Steve C. Orr [MVP, MCSD]
    Aug 13, 2004
  4. =?Utf-8?B?SWFuIFdpbGxpYW1zb24=?=

    Retrieving state information from a middle tier

    =?Utf-8?B?SWFuIFdpbGxpYW1zb24=?=, Feb 25, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    1,268
    =?Utf-8?B?aW5ldG11Zw==?=
    Feb 25, 2005
  5. Joe
    Replies:
    71
    Views:
    1,442
    JEDIDIAH
    Jun 24, 2004
Loading...

Share This Page