Solved

module variables are not reset on asynchronous postback

Posted on 2009-07-14
3
427 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
  • 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now