Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesStrange behavior on custom module when viewing as publicStrange behavior on custom module when viewing as public
Previous
 
Next
New Post
3/26/2010 6:49 PM
 

We have a custom module resource clearinghouse that can be accessed here:

http://www.govoter.org/DocumentsTraining/ResourceClearinghouse/tabid/95/Default.aspx

When a user is logged in, this module works perfectly.  The user can select any number of filters and have the list of resources, defaulting to all, updated to show only the resources that match the specified filter(s).  The pagination buttons function correctly to navigate across pages of results.

However, when a non-logged in user access the page, random and incorrect behavior is experienced.  The events do not fire correctly, such that checking a filter, which fires an event, causes the page to refresh but the checkbox remains unchecked and the list of resources is not updated.  The same behavior experienced with the pagination buttons; the page reloads, but the resources are not updated and the page number remains at the prior page.

Both the set of selected filters and the current page are stored in the viewstate.  I tried converting this to a session variable, but the same behavior is experienced.  This tells me that long with events not firing correctly, variables are not being stored correctly in the viewstate/session.

I have tried debugging the problem but experience erratic results.  Sometimes, at random, all of the filters and resources will disappear.  I must close and re-open the browser to see the filters & resources again.  This is on fresh page load when no filters are selected and all resources should be available.

What would cause this kind of behavior when a user is logged in versus a user who is not logged in?  I can provide the code-behind for the viewing page of this module that is behaving incorrectly if necessary.

Thanks in advance for any assistance you can provide.

 
New Post
3/26/2010 7:13 PM
 

Try turning off caching on the module, in the module settings for the module. That is likely the cause of your problems.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/29/2010 6:35 PM
 
Chris Hammond wrote:

Try turning off caching on the module, in the module settings for the module. That is likely the cause of your problems.

 

That makes perfect sense.  I can't believe I didn't think to check that.  Thanks a lot, this took care of it.

 
New Post
3/29/2010 6:49 PM
 

Unfortunately it's a very common problem, you aren't the first and won't be the last to come across it! It has caused a lot of bruised heads and damaged walls :D 


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesStrange behavior on custom module when viewing as publicStrange behavior on custom module when viewing as public


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out