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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Weird phenomena please help!!!Weird phenomena please help!!!
Previous
 
Next
New Post
9/13/2006 2:35 AM
 

Hi, I am kind of new here so maybe my problem is simple (hopefully…)

I installed the dotnetnuke portal, and also the plugins for developing a module in the visual studio 2005.

 

I created a C# module, and add it to my portal; I also located the module in one of the portal pages, and gave it privileges of viewing to one of the roles.

 

So, the weird phenomenon is the following:

My module do some server side stuff (like every C# module), when I am viewing this page with the administrator, or any other user that has privileges of editing in this page, the page works!. But… if I am viewing this page with a user that has only viewing privileges the following occurs:

The first load of the page done successfully, but every time I am doing something that requires a roundtrip to the server (clicking a button for example – the function that the "click button" calls is empty), the page refreshes and all the data I entered is erased, also the function that assigned to this button is not called, and also the Page_load function (for example, if my page includes a radio button group, and I canged the selection – after the refresh the radio button group will go back to its initialized status, and my change will erased).

But… this is not the end of this weird phenomenon!! I have notice that if I am waiting around 1 minute between every "server roundtrip action" it works fine!

 

Please help, I have no idea what to do….

 

Thanks,

Noy  

 
New Post
9/13/2006 9:45 PM
 

Login as Host and go to Host->Module Definitions and review the module definition.  You might need to set the Default Cache Time to 0.  The default is 60 when you use the wizard to create the module.

Are you using Page.IsPostBack event in your PageLoad section to prevent control reinit when submit?

Hope this helps


Robert Tango
www.workcontrol.com
Custom Modules: UserManager|UserDirectory|UserImport|PortalSSO
 
New Post
9/14/2006 8:14 AM
 

Hi, Thanks for the answer... but unfortunately it doesn’t helped… :( the problem still exist.

 

My “page_load” function is empty (I removed all the handling for the Page.IsPostBack) problem still exist…

Maybe there is an other place that this caching is being saved?

 

Thanks,

Noy

 
New Post
9/14/2006 8:36 PM
 

Noyitz,

Please re-read the suggestion again, and set the setting of the cachetime node to zero in the module definition file (<<module_name>>.dnn) file AND in the settings of the module on already on your page.

(SUGGESTION TO DNN CORE TEAM MEMBERS)
This is a common problem to new module developers. I think it is a safe assumption that more developers will be building dynamic modules instead of static content ones, perhaps it would be best if the starter kits had the timeout defaulted to zero.

-pat.

 

 

 
New Post
10/30/2007 4:10 PM
 

I agree with "username", the default should be zero.  I just wasted several hours trying to figure out why the postback event wouldn't fire in a simple test module when not logged in.  It turns out the cache was set to 60 instead of 0.  Grrr.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Weird phenomena please help!!!Weird phenomena please help!!!


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