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.0Value of controls on module that supports partial rendering not updatingValue of controls on module that supports partial rendering not updating
Previous
 
Next
New Post
5/25/2009 6:01 AM
 

Hi,

I have a problem with controls not updating in a custom module I'm developing that makes use of DNN's inherit AJAX capabilities as described in the article DotNetNuke 4.5 and ASP.NET AJAX. I'm hoping someone could advise me as to what I might be doing wrong. (I'm using version 4.6.2).

My module has a number of controls on it e.g. checkbox lists and link buttons etc. I also have a number of hidden input server controls on my page that I use to store the state of certain controls on my page and which I access with client side script to perform various things. For example, I have a checkbox list that is databound at runtime and where certain items are preselected (checked). This checkbox list is normally hidden from view in a popup window (using the popupcontrolextender). When the page first loads I store the state of each item in the checkbox list to a hidden control - 0 indicating that an item is unchecked and 1 indicating that it's checked, so the value of my hidden control may be 1,0,1..etc. When the user clicks a button to display the popup they may check or uncheck certain items but unless they actually click a certain button on the popup I use javascript and the value in the hidden control to reset the items back to their default state when the popup is hidden. If they do click the update button the form is updated (ashycronously) and amongst other things I again update the value of the hidden control with the new state of the items again. The thing is the value in the hidden control never gets updated even when I know when it should be - i.e. when I view the page source its always set to the value of what it was when the page first loads.

The only way I've found of updating the value of my hidden control is to register my button as a postbackcontrol e.g. DotNetNuke.Framework.AJAX.RegisterPostBackControl(btnUpdate), however this essentially means that my control no longer supports partial rendering as it results in a regular postback.

I'd be grateful if someone could explain what I'm doing wrong.

Thanks

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Value of controls on module that supports partial rendering not updatingValue of controls on module that supports partial rendering not updating


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