Solved

module variables are not reset on asynchronous postback

Posted on 2009-07-14
3
432 Views
Last Modified: 2012-05-07
Hi

I have some variables in a public module and they are not being reset when the page performs an asynchronous postback.

Do you have an idea why this is? If i cannot force them to be reset what variables could i access from a public function in a module that retain their values between successive function calls (within the same postback) but are definitely reset on an asynch postback

many thanks
0
Comment
Question by:andieje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
NazoUK earned 500 total points
ID: 24857232
If you're talking about a Visual Basic module then all variables are shared in scope which means they persist throughout the application. They are also shared between all users of the application so if one user performs an action that modifies the contents of the variable all other users will see the change as well.

From the sound of it modules aren't really appropriate for what you are doing, you should use define on the page that is using them.
0
 

Author Comment

by:andieje
ID: 24861116
Thanks for confirming that for me. What type of variable can i use from within a module (or somewhere where i am putting some shared code) that will be reset per page load. Thanks
0
 

Author Closing Comment

by:andieje
ID: 31603521
many thanks
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question