Onclick event only accessible by a user with edit rights

I having the following problem with all of my custom modules. When I add a linkbutton or button in my custom module "View" page the onclick event of this button is only accessible by a user with edit rights on the module. I need for Every user (unregistered) to be able to click the button.

Even in a simple Module that does not even have an Edit page and with no settings needed. Just a view page that does one simple thing the DNN wont let you click any custom buttons if the user does not have edit rights

Solution:


Make sure that in your module's settings (Page Settings), the "Cache Time" is set to 0. You may also want to set the Cache Duration to -1 in the Host-->Module Definitions for this module or in the module's .dnn manifest file. The -1 signifies that the Cache Time will be set to 0 AND the option of changing the Cache Time will not be shown on the settings page of each instance of the module.

The tip off to this being the solution is "wierd", non-working or intermittant postbacks from buttons and other asp.net controls WHEN the user is not logged in or does not have edit privileges on the module vs proper operation otherwise.