CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Global Variable

  1. #1
    Join Date
    Jan 2000
    Posts
    2

    Global Variable

    We have an IIS application done using Webclass. We have a global variable which get the value from the global.asa
    We have htm templates which uses webtags and xml to load data.
    After leaving the page unatteded for some time and when we tried to load XML it fails.
    We tried to set the session.timeout to 120
    But it didnt work. We found that the global variable is not retaining its value.
    This variable is delcared as public in a module and is assigned value from the applicaiton object.

    I would appreciate if some one could help me in finding the reason and a solution for it.
    Thanks

    Ramdas

  2. #2

    Re: Global Variable

    Try declaring the var as static. If you turn the program off then you could always use Vb's simple reg methods to write it to a key in the registry


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

Featured