Variable scope with Include Directive ???

Discussion in 'ASP General' started by Anthony Judd, Jul 3, 2003.

  1. Anthony Judd

    Anthony Judd Guest

    I am opening a recordset on page 'A' then using server.execute to populate a
    form on page 'B'.
    I am getting a a type mismatch error, which suggests the variable doesn't
    exist on page 'B'.

    I know variable state is supposed to be maintained when using
    server.execute.., the problem is what i don't know.

    1. could someone please enlighten me as to what is going on.
    2. give some suggestion about how work around this problem.

    Thanx to those who read this message.
    Anthony Judd, Jul 3, 2003
    #1
    1. Advertising

  2. Anthony Judd

    Ray at Guest

    I don't think that variables do carry over when you .execute. They will
    with an include though.

    Ray at work

    "Anthony Judd" <adsf@.com> wrote in message
    news:...
    > I am opening a recordset on page 'A' then using server.execute to populate

    a
    > form on page 'B'.
    > I am getting a a type mismatch error, which suggests the variable doesn't
    > exist on page 'B'.
    >
    > I know variable state is supposed to be maintained when using
    > server.execute.., the problem is what i don't know.
    >
    > 1. could someone please enlighten me as to what is going on.
    > 2. give some suggestion about how work around this problem.
    >
    > Thanx to those who read this message.
    >
    >
    Ray at, Jul 3, 2003
    #2
    1. Advertising

  3. Anthony Judd

    Matthew Lock Guest

    You have to use session variables to transfer data between your
    original script and server.execute

    "Anthony Judd" <adsf@.com> wrote in message news:<>...
    > I am opening a recordset on page 'A' then using server.execute to populate a
    > form on page 'B'.
    > I am getting a a type mismatch error, which suggests the variable doesn't
    > exist on page 'B'.
    >
    > I know variable state is supposed to be maintained when using
    > server.execute.., the problem is what i don't know.
    >
    > 1. could someone please enlighten me as to what is going on.
    > 2. give some suggestion about how work around this problem.
    >
    > Thanx to those who read this message.
    Matthew Lock, Jul 7, 2003
    #3
    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. Farooq Khan

    using Include directive in ASP .NET

    Farooq Khan, Oct 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,260
    Kevin Spencer
    Oct 28, 2003
  2. Andreas Bogenberger
    Replies:
    3
    Views:
    888
    Andreas Bogenberger
    Feb 22, 2008
  3. Falk Köppe
    Replies:
    4
    Views:
    2,418
    Wojtek
    May 19, 2009
  4. David Filmer
    Replies:
    19
    Views:
    227
    Kevin Collins
    May 21, 2004
  5. Andrew Falanga
    Replies:
    2
    Views:
    194
    Andrew Falanga
    Nov 22, 2008
Loading...

Share This Page