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.0DNN 04.05.04 web controls cant get viewstate?DNN 04.05.04 web controls cant get viewstate?
Previous
 
Next
New Post
7/26/2007 9:16 AM
 

Hi all

I've just started to implement dnn 04.05.04 and have created some customized modules in it.

The problem I'm currently facing is this: In the Edit Mode (displayed within the control panel), the webcontrols inside my customized modules are able to display their latest values (eg. i entered 'abc' into a textbox and after postback, the textbox's text will still be 'abc'). However, if I'm in the View Mode, the textbox's text will be clear after postback. This happened also to my dropdownlists where the selected value will be reset to the default value.

I'm guessing that in the View Mode, the viewstate is either disabled or lost. Is there any solution for me to keep the viewstate for the webcontrols in View Mode or am I thinking in the wrong direction?

Any help will be much appreciated. --- kai

 
New Post
7/28/2007 1:58 AM
 

Set the default cache duration for this custom module to -1

 
New Post
7/28/2007 8:05 AM
 

DotNetNuke modules hold viewstate like normal. However if you are loading your controls dynamically they will not hold viewstate unless you use the techniques described here: DynamicForms



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN 04.05.04 web controls cant get viewstate?DNN 04.05.04 web controls cant get viewstate?


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