Results 1 to 3 of 3

Thread: Public variables

  1. #1
    Guest
    Hi,
    What is the best way to declare public variables in an ASP script?

    I tried including a .inc file as
    < ! #include file = "testincl.inc" >

    where testincl.inc contains
    public str

    But i still cannot access str as a public variable.

    Thanks for any help.

  2. #2
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    Hi,
    you could create a session variable, and then request it from each page.

    Lenin

  3. #3
    Guest
    Thanks for your reply lenin.

    I already have a couple of session variables defined in one of the server events. I am not able to access them in any of the client events, though it works fine in the other server events.
    Can you give me an example?
    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width